-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.dirtyforms.dialogs.blockui.min.js.map
1 lines (1 loc) · 5.23 KB
/
jquery.dirtyforms.dialogs.blockui.min.js.map
1
{"version":3,"sources":["jquery.dirtyforms.dialogs.blockui.min.js"],"names":["$","window","document","undefined","DirtyForms","dialog","title","class","proceedButtonText","stayButtonText","width","padding","color","border","backgroundColor","overlayOpacity","open","choice","message","blockUI","this","css","cursor","overlayCSS","opacity","bindEnterKey","proceedSelector","staySelector","isDF1","close","decision","e","type","which","unblockUI","decidingCancel","keydown","click","decidingContinue","fire","bind","stash","refire","selector","jQuery"],"mappings":";;;;;CAMA,SAAUA,EAAGC,EAAQC,EAAUC,GAQ3BH,EAAEI,WAAWC,QAETC,MAAO,oCACPC,QAAO,eACPC,kBAAmB,kBACnBC,eAAgB,YAChBC,MAAO,QACPC,QAAS,OACTC,MAAO,OACPC,OAAQ,iBACRC,gBAAiB,OACjBC,eAAgB,GAGhBC,KAAM,SAAUC,EAAQC,GA8BpB,GA7BAlB,EAAEmB,SACED,QAAS,gBAAkBE,KAAAA,SAAa,SACvBA,KAAKd,MAAQ,WACdY,EAAU,yDAEmCE,KAAKZ,kBAAoB,sDAC5BY,KAAKX,eAAiB,0BAGhFY,KACIX,MAAOU,KAAKV,MACZC,QAASS,KAAKT,QACdC,MAAOQ,KAAKR,MACZC,OAAQO,KAAKP,OACbC,gBAAiBM,KAAKN,gBACtBQ,OAAQ,QAEZC,YACID,OAAQ,OACRE,QAASJ,KAAKL,kBAKtBE,EAAOQ,cAAe,EACtBR,EAAOS,gBAAkB,IAAMN,KAAAA,SAAa,kBAC5CH,EAAOU,aAAe,IAAMP,KAAAA,SAAa,6BAGrCH,EAAOW,MAAO,CACd,GAAIC,GAAQ,SAAUC,GAClB,MAAO,UAAUC,GACb,MAAe,YAAXA,EAAEC,MAAkC,YAAXD,EAAEC,OAAkC,IAAXD,EAAEE,OAA0B,IAAXF,EAAEE,QACrEjC,EAAEkC,YACFJ,EAASC,IACF,GAHX,SAOJI,EAAiBnC,EAAEI,WAAW+B,cAClCnC,GAAEE,GAAUkC,QAAQP,EAAMM,IAC1BnC,EAAEiB,EAAOU,cAAcU,MAAMR,EAAMM,IACnCnC,EAAEiB,EAAOS,iBAAiBW,MAAMR,EAAM7B,EAAEI,WAAWkC,qBAG3DT,MAAO,WACH7B,EAAEkC,aAINK,KAAM,SAAUrB,EAASZ,GACrBc,KAAKd,MAAQA,EACbc,KAAKJ,MAAOY,OAAO,GAAQV,IAI/BsB,KAAM,aAENC,MAAO,WACH,OAAO,GAEXC,OAAQ,WACJ,OAAO,GAEXC,SAAU,UAGfC,OAAQ3C,OAAQC","file":"jquery.dirtyforms.dialogs.blockui.min.js","sourceRoot":"/","sourcesContent":["/*!\nBlockUI dialog module (for jQuery Dirty Forms) | v2.0.0 | github.com/snikch/jquery.dirtyforms\n(c) 2015 Shad Storhaug\nLicense MIT\n*/\n\n(function($, window, document, undefined) {\n // Can't use ECMAScript 5's strict mode because several apps \n // including ASP.NET trace the stack via arguments.caller.callee \n // and Firefox dies if you try to trace through \"use strict\" call chains. \n // See jQuery issue (#13335)\n // Support: Firefox 18+\n //\"use strict\";\n\n $.DirtyForms.dialog = {\n // Custom properties and methods to allow overriding (may differ per dialog)\n title: 'Are you sure you want to do that?',\n class: 'dirty-dialog',\n proceedButtonText: 'Leave This Page',\n stayButtonText: 'Stay Here',\n width: '400px',\n padding: '10px',\n color: '#000',\n border: '3px solid #aaa',\n backgroundColor: '#fff',\n overlayOpacity: 0.5,\n\n // Typical Dirty Forms Properties and Methods\n open: function (choice, message) {\n $.blockUI({\n message: '<span class=\"' + this.class + '\">' +\n '<h3>' + this.title + '</h3>' +\n '<p>' + message + '</p>' +\n '<span>' +\n '<button type=\"button\" class=\"dirty-proceed\">' + this.proceedButtonText + '</button> ' +\n '<button type=\"button\" class=\"dirty-stay\">' + this.stayButtonText + '</button>' +\n '</span>' +\n '</span>',\n css: {\n width: this.width,\n padding: this.padding,\n color: this.color,\n border: this.border,\n backgroundColor: this.backgroundColor,\n cursor: 'auto'\n },\n overlayCSS: {\n cursor: 'auto',\n opacity: this.overlayOpacity\n }\n });\n\n // Bind Events\n choice.bindEnterKey = true;\n choice.proceedSelector = '.' + this.class + ' .dirty-proceed';\n choice.staySelector = '.' + this.class + ' .dirty-stay,.blockOverlay';\n\n // Support for Dirty Forms < 2.0\n if (choice.isDF1) {\n var close = function (decision) {\n return function (e) {\n if (e.type !== 'keydown' || (e.type === 'keydown' && (e.which == 27 || e.which == 13))) {\n $.unblockUI();\n decision(e);\n return false;\n }\n };\n };\n var decidingCancel = $.DirtyForms.decidingCancel;\n $(document).keydown(close(decidingCancel));\n $(choice.staySelector).click(close(decidingCancel));\n $(choice.proceedSelector).click(close($.DirtyForms.decidingContinue));\n }\n },\n close: function () {\n $.unblockUI();\n },\n\n // Support for Dirty Forms < 2.0\n fire: function (message, title) {\n this.title = title;\n this.open({ isDF1: true }, message);\n },\n\n // Support for Dirty Forms < 1.2\n bind: function () {\n },\n stash: function () {\n return false;\n },\n refire: function () {\n return false;\n },\n selector: 'no-op'\n };\n\n})(jQuery, window, document);\n"]}