-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.dirtyforms.helpers.ckeditor.min.js.map
1 lines (1 loc) · 3.42 KB
/
jquery.dirtyforms.helpers.ckeditor.min.js.map
1
{"version":3,"sources":["jquery.dirtyforms.helpers.ckeditor.min.js"],"names":["$","window","document","undefined","ignoreSelector","ckeditor","isDirty","$form","$editors","ckeditors","length","each","editorIndex","this","checkDirty","setClean","resetDirty","ignoreAnchorSelector","form","jquery","editors","CKEDITOR","instances","key","hasOwnProperty","editor","element","parents","index","push","e","DirtyForms","helpers","jQuery"],"mappings":";;;;;CAMA,SAAUA,EAAGC,EAAQC,EAAUC,GAQ3B,GAAIC,GAAiB,wCAEjBC,GACAD,eAAgBA,EAChBE,QAAS,SAAUC,GACf,GAAIC,GAAWC,EAAUF,GACrBD,GAAU,CAad,OAZIE,GAASE,OAAS,GAElBF,EAASG,KAAK,SAAUC,GACpB,MAAIC,MAAKC,cACLR,GAAU,GAIH,GALX,SASDA,GAEXS,SAAU,SAAUR,GAChBE,EAAUF,GAAOI,KAAK,WAAcE,KAAKG,gBAI7CC,qBAAsBb,GAEtBK,EAAY,SAAUS,GACtB,GAAIX,GAAQW,EAAKC,OAASD,EAAOlB,EAAEkB,GAC/BE,IACJ,KAAKnB,EAAOoB,WAAapB,EAAOoB,SAASC,UACrC,MAAOtB,GAAEoB,EAEb,KACI,IAAK,GAAIG,KAAOtB,GAAOoB,SAASC,UAC5B,GAAIrB,EAAOoB,SAASC,UAAUE,eAAeD,GAAM,CAC/C,GAAIE,GAASxB,EAAOoB,SAASC,UAAUC,EACW,KAA9CvB,EAAEyB,EAAOC,QAAQ1B,GAAG2B,UAAUC,MAAMrB,IAEpCa,EAAQS,KAAKJ,IAK7B,MAAOK,IAGP,MAAO9B,GAAEoB,GAEbpB,GAAE+B,WAAWC,QAAQH,KAAKxB,IAE3B4B,OAAQhC,OAAQC","file":"jquery.dirtyforms.helpers.ckeditor.min.js","sourceRoot":"/","sourcesContent":["/*!\nCkEditor helper module (for jQuery Dirty Forms) | v2.0.0 | github.com/snikch/jquery.dirtyforms\n(c) 2012-2015 Mal Curtis\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 var ignoreSelector = '.cke_dialog_ui_button,.cke_tpl_list a';\n\n var ckeditor = {\n ignoreSelector: ignoreSelector,\n isDirty: function ($form) {\n var $editors = ckeditors($form),\n isDirty = false;\n if ($editors.length > 0) {\n \n $editors.each(function (editorIndex) {\n if (this.checkDirty()) {\n isDirty = true;\n\n \n // Return false to break out of the .each() function\n return false;\n }\n });\n }\n return isDirty;\n },\n setClean: function ($form) {\n ckeditors($form).each(function () { this.resetDirty(); });\n },\n\n // Support for Dirty Forms < 2.0\n ignoreAnchorSelector: ignoreSelector\n };\n var ckeditors = function (form) {\n var $form = form.jquery ? form : $(form);\n var editors = [];\n if (!window.CKEDITOR || !window.CKEDITOR.instances) {\n return $(editors);\n }\n try {\n for (var key in window.CKEDITOR.instances) {\n if (window.CKEDITOR.instances.hasOwnProperty(key)) {\n var editor = window.CKEDITOR.instances[key];\n if ($(editor.element.$).parents().index($form) != -1) {\n \n editors.push(editor);\n }\n }\n }\n }\n catch (e) {\n // Ignore, means there was no CKEDITOR variable\n }\n return $(editors);\n };\n $.DirtyForms.helpers.push(ckeditor);\n\n})(jQuery, window, document);\n"]}