.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:
ChanMyeong 2012-11-29 08:58:46 +00:00
parent 84f0692664
commit 105ec8f948
5 changed files with 2 additions and 24 deletions

View file

@ -1,25 +1,9 @@
/* 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
function doInstallModule(module) {
var params = new Array();
params['module_name'] = module;
exec_xml('install','procInstallAdminInstall',params, completeInstallModule);
showWaitingFogLayer();
}
// upgrade module
@ -27,7 +11,6 @@ function doUpdateModule(module) {
var params = new Array();
params['module_name'] = module;
exec_xml('install','procInstallAdminUpdate',params, completeInstallModule);
showWaitingFogLayer();
}
function completeInstallModule(ret_obj) {

File diff suppressed because one or more lines are too long

View file

@ -120,11 +120,9 @@ function doRecompileCacheFile() {
if (!confirm(xe.lang.confirm_run)) return;
var params = new Array();
exec_xml("admin","procAdminRecompileCacheFile", params, completeCacheMessage);
showWaitingFogLayer();
}
function completeCacheMessage(ret_obj) {
alert(ret_obj['message']);
hideWaitingFogLayer();
}
function doResetAdminMenu() {
@ -132,7 +130,6 @@ function doResetAdminMenu() {
var params = new Array();
params['menu_srl'] = admin_menu_srl;
exec_xml("admin","procAdminMenuReset", params, completeResetAdminMenu);
showWaitingFogLayer();
}
function completeResetAdminMenu(ret_obj) {
document.location.reload();

View file

@ -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)}
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"))}
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()};

View file

@ -3,10 +3,8 @@ function doClearSession() {
var response_tags = new Array('error','message','result');
var params = new Array();
exec_xml('session','procSessionAdminClear', params, completeClearSession, response_tags);
showWaitingFogLayer();
}
function completeClearSession(ret_obj, response_tags) {
alert(ret_obj['result']);
hideWaitingFogLayer();
}