Viewing File: /usr/local/cpanel/base/frontend/jupiter/js/filemanager_editors.min.js

function check_for_encoding_change(e,t){var n=t[0].charset;if(n.normalize_charset()!==CHARSET.normalize_charset()){var i=YAHOO.lang.substitute(e,{old_charset:CHARSET.toUpperCase(),new_charset:n.toUpperCase()}),o=new CPANEL.ajax.Common_Dialog("enc_changed",{width:"500px",show_status:!0,status_html:LEXICON.reloading});return o.cfg.getProperty("buttons")[0].text=LOCALE.maketext("OK"),o.cfg.getProperty("buttons").pop(),DOM.addClass(o.element,"cjt_notice_dialog cjt_info_dialog"),o.setHeader("<div class='lt'></div><span>"+LEXICON.charset_changed+"</span><div class='rt'></div>"),o.renderEvent.subscribe((function(){this.form.innerHTML=i,this.center()})),o.submitEvent.subscribe((function(){var e=location.href.replace(/([^&?]*charset)=[^&]*/g,"$1="+n);location.href=e})),this.fade_to(o)[0].onComplete.subscribe(this.hide,this,!0),!1}}function check_file_edits(){var e={isFileModified:!1,changedContent:""};return USE_LEGACY_EDITOR?e.changedContent=editAreaLoader.getValue(editAreaEl):e.changedContent=ace_editor.getSession().getValue(),e.isFileModified=e.changedContent!==savedContent,e}function confirm_close(e){if(check_file_edits().isFileModified){if(!confirm(LEXICON.confirm_close))return;window.close()}window.close()}String.prototype.normalize_charset=function(){return this.toLowerCase().replace(/[_,.-]/,"")};
Back to Directory File Manager