1/* 2A responsive modal plugin for jquery 3*/ 4 5(function ($) { 6 $.extend($.fn, { 7 modal: function (onClose) { 8 var self = this; 9 self.onClose = null; 10 self.onClose = onClose; 11 self.show(); 12 self.parent().show(); 13 14 window.setTimeout(function() { 15 self.find('#txtAreaAddText').focus(); 16 self.children().find('#nameSaveDesign').focus(); 17 }, 100); 18 19 20 self.find("i.md-close, div.md-close, .cancel_btn_pop").unbind().click(function () { 21 self.closeModal(); 22 23 }); 24 25 $(document).on('keyup', function (evt) { 26 if (evt.keyCode == 27) { 27 self.closeModal(); 28 } 29 }); 30 31 //self.find(".modal-container").parent().parent().find(".modal-darknight").mousedown(function () { 32 // self.closeModal(); 33 //}); 34 35 return this; 36 }, 37 closeModal: function () { 38 39 if (this.onClose) { 40 this.onClose(); 41 } 42 this.hide(); 43 this.parent().hide(); 44 $('body').removeClass('no-scroll'); 45 } 46 47 }); 48})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.