From 7a498e18fbeca15eb66022151fc5a8cec5bf1687 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sat, 4 Aug 2012 16:16:25 +0200 Subject: [PATCH] (bug 24566) Make the search and replace dialog non-modal This has been a popular request, because people often have to interrupt their search to make certain changes and then want to resume. Change-Id: Id537ffe439d4522add300d8c1355758774dca1c9 --- modules/jquery.wikiEditor.dialogs.config.js | 1 + modules/jquery.wikiEditor.dialogs.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/jquery.wikiEditor.dialogs.config.js b/modules/jquery.wikiEditor.dialogs.config.js index 578eefc2..e76ca03f 100644 --- a/modules/jquery.wikiEditor.dialogs.config.js +++ b/modules/jquery.wikiEditor.dialogs.config.js @@ -1295,6 +1295,7 @@ $.wikiEditor.modules.dialogs.config = { dialog: { width: 500, dialogClass: 'wikiEditor-toolbar-dialog', + modal: false, buttons: { 'wikieditor-toolbar-tool-replace-button-findnext': function ( e ) { $(this).closest( '.ui-dialog' ).data( 'dialogaction', e.target ); diff --git a/modules/jquery.wikiEditor.dialogs.js b/modules/jquery.wikiEditor.dialogs.js index 8a629e14..f6d86d78 100644 --- a/modules/jquery.wikiEditor.dialogs.js +++ b/modules/jquery.wikiEditor.dialogs.js @@ -124,7 +124,10 @@ $.wikiEditor.modules.dialogs = { // Add some stuff to configuration configuration.bgiframe = true; configuration.autoOpen = false; - configuration.modal = true; + // By default our dialogs are modal, unless explicitely defined in their specific configuration. + if( typeof configuration.modal == "undefined" ) { + configuration.modal = true; + } configuration.title = $.wikiEditor.autoMsg( module, 'title' ); // Transform messages in keys // Stupid JS won't let us do stuff like