You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(e.keyCode==27&&modal.is(':visible')&&settings.enableEsc){// Esc key events based on options
69
-
self.quickModal('close',settings);
70
-
bodyTag.unbind('keyup',keyUpCheck);// Unbind to prevent multiple bindings
71
-
}
68
+
if(e.keyCode==27&&modal.is(':visible')&&settings.enableEsc)closeModal();// Esc key events based on options
69
+
}
70
+
71
+
functioncloseModal(){
72
+
self.quickModal('close',settings);
73
+
bodyTag.unbind('keyup',keyUpCheck);
74
+
closeModalLink.unbind('click');
75
+
$('#modal-background').unbind('click');
72
76
}
73
77
74
78
if(!$('#modal-background').length)$(settings.appendBackgroundTo).append('<div id="modal-background"></div>');// Append background; do not append if background already exists
0 commit comments