From 16d4213c53cc93dad7066c5a35e2a87c21ac801a Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 17 Jan 2016 07:21:48 +0000 Subject: [PATCH] put a default button to a in-progress dialog --- codepot/src/codepot/views/wiki_edit.php | 6 ++++++ codepot/src/codepot/views/wiki_editx.php | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/codepot/src/codepot/views/wiki_edit.php b/codepot/src/codepot/views/wiki_edit.php index 89e5c17a..b709d2a7 100644 --- a/codepot/src/codepot/views/wiki_edit.php +++ b/codepot/src/codepot/views/wiki_edit.php @@ -277,6 +277,12 @@ function show_in_progress_message (outputMsg, titleMsg) width: 'auto', height: 'auto', + buttons: { + "OK": function () { + // do nothing + } + }, + beforeClose: function() { // if importing is in progress, prevent dialog closing return !work_in_progress; diff --git a/codepot/src/codepot/views/wiki_editx.php b/codepot/src/codepot/views/wiki_editx.php index 25b23919..1d92a8ae 100644 --- a/codepot/src/codepot/views/wiki_editx.php +++ b/codepot/src/codepot/views/wiki_editx.php @@ -226,6 +226,11 @@ function show_in_progress_message (outputMsg, titleMsg) width: 'auto', height: 'auto', + buttons: { + "OK": function () { + // do nothing + } + }, beforeClose: function() { // if importing is in progress, prevent dialog closing return !work_in_progress;