mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
.wfsr JS code cleaning.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12328 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
84f0692664
commit
105ec8f948
5 changed files with 2 additions and 24 deletions
|
|
@ -1,25 +1,9 @@
|
||||||
/* NHN (developers@xpressengine.com) */
|
/* NHN (developers@xpressengine.com) */
|
||||||
// insert fog layer
|
|
||||||
function showWaitingFogLayer() {
|
|
||||||
var $bg = jQuery('<span class="bg"></span>');
|
|
||||||
$bg.height(jQuery(window).height());
|
|
||||||
jQuery('.wfsr')
|
|
||||||
.wrap('<div class="wfsr_fog" />')
|
|
||||||
.before($bg);
|
|
||||||
}
|
|
||||||
|
|
||||||
function hideWaitingFogLayer() {
|
|
||||||
jQuery('.wfsr').prev('span').remove();
|
|
||||||
jQuery('.wfsr').unwrap();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
// install module
|
// install module
|
||||||
function doInstallModule(module) {
|
function doInstallModule(module) {
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
params['module_name'] = module;
|
params['module_name'] = module;
|
||||||
exec_xml('install','procInstallAdminInstall',params, completeInstallModule);
|
exec_xml('install','procInstallAdminInstall',params, completeInstallModule);
|
||||||
showWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// upgrade module
|
// upgrade module
|
||||||
|
|
@ -27,7 +11,6 @@ function doUpdateModule(module) {
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
params['module_name'] = module;
|
params['module_name'] = module;
|
||||||
exec_xml('install','procInstallAdminUpdate',params, completeInstallModule);
|
exec_xml('install','procInstallAdminUpdate',params, completeInstallModule);
|
||||||
showWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeInstallModule(ret_obj) {
|
function completeInstallModule(ret_obj) {
|
||||||
|
|
|
||||||
2
modules/admin/tpl/js/admin.min.js
vendored
2
modules/admin/tpl/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -120,11 +120,9 @@ function doRecompileCacheFile() {
|
||||||
if (!confirm(xe.lang.confirm_run)) return;
|
if (!confirm(xe.lang.confirm_run)) return;
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
exec_xml("admin","procAdminRecompileCacheFile", params, completeCacheMessage);
|
exec_xml("admin","procAdminRecompileCacheFile", params, completeCacheMessage);
|
||||||
showWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
function completeCacheMessage(ret_obj) {
|
function completeCacheMessage(ret_obj) {
|
||||||
alert(ret_obj['message']);
|
alert(ret_obj['message']);
|
||||||
hideWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function doResetAdminMenu() {
|
function doResetAdminMenu() {
|
||||||
|
|
@ -132,7 +130,6 @@ function doResetAdminMenu() {
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
params['menu_srl'] = admin_menu_srl;
|
params['menu_srl'] = admin_menu_srl;
|
||||||
exec_xml("admin","procAdminMenuReset", params, completeResetAdminMenu);
|
exec_xml("admin","procAdminMenuReset", params, completeResetAdminMenu);
|
||||||
showWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
function completeResetAdminMenu(ret_obj) {
|
function completeResetAdminMenu(ret_obj) {
|
||||||
document.location.reload();
|
document.location.reload();
|
||||||
|
|
|
||||||
2
modules/admin/tpl/js/config.min.js
vendored
2
modules/admin/tpl/js/config.min.js
vendored
|
|
@ -3,4 +3,4 @@ function getFTPList(a){var b=jQuery("#ftp_form").get(0);b.ftp_root_path.value="u
|
||||||
"error","message"],a,b)}function removeFTPInfo(){var a={};exec_xml("install","procInstallAdminRemoveFTPInfo",a,filterAlertMessage,["error","message"],a)}
|
"error","message"],a,b)}function removeFTPInfo(){var a={};exec_xml("install","procInstallAdminRemoveFTPInfo",a,filterAlertMessage,["error","message"],a)}
|
||||||
function completeGetFtpInfo(a){if(0!=a.error)alert(a.error),alert(a.message);else{var b=jQuery("#ftpSuggestion").empty(),c="";jQuery.isArray(a.list.item)||(a.list.item=[a.list.item]);pwd=jQuery("#ftp_form").get(0).ftp_root_path.value;"/"!=pwd&&(arr=pwd.split("/"),arr.pop(),arr.pop(),arr.push(""),target=arr.join("/"),c=c+"<li><button type='button' onclick=\"getFTPList('"+target+"')\">../</button></li>");for(var e=0;e<a.list.item.length;e++){var d=a.list.item[e];"../"!=d&&"./"!=d&&(c=c+"<li><button type='button' onclick=\"getFTPList('"+
|
function completeGetFtpInfo(a){if(0!=a.error)alert(a.error),alert(a.message);else{var b=jQuery("#ftpSuggestion").empty(),c="";jQuery.isArray(a.list.item)||(a.list.item=[a.list.item]);pwd=jQuery("#ftp_form").get(0).ftp_root_path.value;"/"!=pwd&&(arr=pwd.split("/"),arr.pop(),arr.pop(),arr.push(""),target=arr.join("/"),c=c+"<li><button type='button' onclick=\"getFTPList('"+target+"')\">../</button></li>");for(var e=0;e<a.list.item.length;e++){var d=a.list.item[e];"../"!=d&&"./"!=d&&(c=c+"<li><button type='button' onclick=\"getFTPList('"+
|
||||||
pwd+d+"')\">"+d+"</button></li>")}b.append(jQuery("<ul>"+c+"</ul>"))}}var icon=null;function deleteIcon(a){var b=[];b.iconname=a;exec_xml("admin","procAdminRemoveIcons",b,iconDeleteMessage,["error","message"],b);icon=a}function iconDeleteMessage(a){alert(a.message);"0"==a.error&&("favicon.ico"==icon?jQuery(".faviconPreview img").attr("src","modules/admin/tpl/img/faviconSample.png"):"mobicon.png"==icon&&jQuery(".mobiconPreview img").attr("src","modules/admin/tpl/img/mobiconSample.png"))}
|
pwd+d+"')\">"+d+"</button></li>")}b.append(jQuery("<ul>"+c+"</ul>"))}}var icon=null;function deleteIcon(a){var b=[];b.iconname=a;exec_xml("admin","procAdminRemoveIcons",b,iconDeleteMessage,["error","message"],b);icon=a}function iconDeleteMessage(a){alert(a.message);"0"==a.error&&("favicon.ico"==icon?jQuery(".faviconPreview img").attr("src","modules/admin/tpl/img/faviconSample.png"):"mobicon.png"==icon&&jQuery(".mobiconPreview img").attr("src","modules/admin/tpl/img/mobiconSample.png"))}
|
||||||
function doRecompileCacheFile(){confirm(xe.lang.confirm_run)&&(exec_xml("admin","procAdminRecompileCacheFile",[],completeCacheMessage),showWaitingFogLayer())}function completeCacheMessage(a){alert(a.message);hideWaitingFogLayer()}function doResetAdminMenu(){if(confirm(xe.lang.confirm_reset_admin_menu)){var a=[];a.menu_srl=admin_menu_srl;exec_xml("admin","procAdminMenuReset",a,completeResetAdminMenu);showWaitingFogLayer()}}function completeResetAdminMenu(){document.location.reload()};
|
function doRecompileCacheFile(){confirm(xe.lang.confirm_run)&&(exec_xml("admin","procAdminRecompileCacheFile",[],completeCacheMessage),showWaitingFogLayer())}function completeCacheMessage(a){alert(a.message)}function doResetAdminMenu(){if(confirm(xe.lang.confirm_reset_admin_menu)){var a=[];a.menu_srl=admin_menu_srl;exec_xml("admin","procAdminMenuReset",a,completeResetAdminMenu);showWaitingFogLayer()}}function completeResetAdminMenu(){document.location.reload()};
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,8 @@ function doClearSession() {
|
||||||
var response_tags = new Array('error','message','result');
|
var response_tags = new Array('error','message','result');
|
||||||
var params = new Array();
|
var params = new Array();
|
||||||
exec_xml('session','procSessionAdminClear', params, completeClearSession, response_tags);
|
exec_xml('session','procSessionAdminClear', params, completeClearSession, response_tags);
|
||||||
showWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeClearSession(ret_obj, response_tags) {
|
function completeClearSession(ret_obj, response_tags) {
|
||||||
alert(ret_obj['result']);
|
alert(ret_obj['result']);
|
||||||
hideWaitingFogLayer();
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue