Remove unnecessary procAdminRemoveIcons action

This commit is contained in:
Kijin Sung 2024-04-17 23:28:34 +09:00
parent dd6b577780
commit d861040766
3 changed files with 1 additions and 40 deletions

View file

@ -30,7 +30,7 @@ jQuery(function($){
}
}).triggerHandler("change");
}
// Disable rewrite level 2 if test AJAX request fails.
if ($('#use_rewrite_2').size() && !$('#use_rewrite_2').is(':checked')) {
var testval = 1000 + Math.floor(Math.random() * 9000);
@ -62,25 +62,6 @@ function viewSiteSearch(){
jQuery(".site_keyword_search").css("display","");
}
var icon = null;
function deleteIcon(iconname){
var params = [];
params.iconname = iconname;
exec_xml('admin', 'procAdminRemoveIcons', params, iconDeleteMessage, ['error', 'message'], params);
icon = iconname;
}
function iconDeleteMessage(ret_obj){
alert(ret_obj.message);
if (ret_obj.error == '0')
{
if (icon == 'favicon.ico'){
jQuery('.faviconPreview img').attr('src', 'modules/admin/tpl/img/faviconSample.png');
}else if (icon == 'mobicon.png'){
jQuery('.mobiconPreview img').attr('src', 'modules/admin/tpl/img/mobiconSample.png');
}
}
}
function doRecompileCacheFile() {
if (!confirm(xe.lang.confirm_run)) return;
exec_json('admin.procAdminRecompileCacheFile', {}, function(data) {