From 67923e441515790251d2bde3aa050fe51b54b5f1 Mon Sep 17 00:00:00 2001 From: CreativeDream Date: Tue, 19 May 2015 08:56:01 +0200 Subject: [PATCH 1/7] Update jquery.modal.js --- js/jquery.modal.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/jquery.modal.js b/js/jquery.modal.js index 655585b..a5b24f9 100644 --- a/js/jquery.modal.js +++ b/js/jquery.modal.js @@ -29,7 +29,7 @@ function modal(e) { closeClick: true, closable: true, theme: "default", - background: "rgba(0,0,0,0.35)", + background: null, zIndex: 1050, buttonText: { ok: "OK", @@ -59,10 +59,12 @@ function modal(e) { i.on("click", "a.modal-btn", function(t) { u._modalBtn(e(this)) }).on("click", t._classes.closebtn, function(e) { + r = false; u._modalHide() }).click(function(e) { if (t.closeClick) { if (e.target.id == "modal-window") { + r = false; u._modalHide() } } @@ -299,4 +301,4 @@ function modal(e) { u.init(); return u.actions; } -})(jQuery); \ No newline at end of file +})(jQuery); From adb6f7bd7e9c052b62b0307edf2ed35618a52f28 Mon Sep 17 00:00:00 2001 From: CreativeDream Date: Tue, 19 May 2015 08:56:09 +0200 Subject: [PATCH 2/7] Update jquery.modal.min.js --- js/jquery.modal.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/jquery.modal.min.js b/js/jquery.modal.min.js index b1bb3b2..ed9faff 100644 --- a/js/jquery.modal.min.js +++ b/js/jquery.modal.min.js @@ -5,4 +5,4 @@ * Version: 1.2.3 (10-04-2015) * Requires: jQuery v1.7.1 or later */ -function modal(t){return $.cModal(t)}!function(t){t.cModal=function(n){var e,o={type:"default",title:null,text:null,size:"normal",buttons:[{text:"OK",val:!0,onClick:function(){return!0}}],center:!0,autoclose:!1,callback:null,onShow:null,animate:!0,closeClick:!0,closable:!0,theme:"default",background:"rgba(0,0,0,0.35)",zIndex:1050,buttonText:{ok:"OK",yes:"Yes",cancel:"Cancel"},template:'',_classes:{box:".modal-box",boxInner:".modal-inner",title:".modal-title",content:".modal-text",buttons:".modal-buttons",closebtn:".modal-close-btn"}},n=t.extend({},o,n),a=t("