[Kimchi-devel] [PATCH] [Wok 09/10] Prevented modals from closing when clicking on the backdrop

sguimaraes943 at gmail.com sguimaraes943 at gmail.com
Mon Dec 14 18:58:58 UTC 2015


From: samhenri <samuel.guimaraes at eldorado.org.br>

Signed-off-by: samhenri <samuel.guimaraes at eldorado.org.br>
---
 ui/js/src/wok.window.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ui/js/src/wok.window.js b/ui/js/src/wok.window.js
index d50fc6d..4edf25e 100644
--- a/ui/js/src/wok.window.js
+++ b/ui/js/src/wok.window.js
@@ -38,6 +38,11 @@ wok.window = (function() {
         _listeners[windowID] = settings['close'];
         var windowNode = $('<div id="' + windowID + '" class="modal-dialog"></div>');
 
+        $('#' + target).modal({
+            backdrop: 'static',
+            keyboard: false
+        });
+
         $('#' + target).modal('show');
 
         $('#' + target).on('hidden.bs.modal', function() {
-- 
1.9.3




More information about the Kimchi-devel mailing list