issue 160, show fog layer when module install/update

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9328 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-26 06:39:19 +00:00
parent d0d528d943
commit e734c402db

View file

@ -1112,11 +1112,21 @@ $('.filebox')
});
/* insert fog layer */
function showWaitingFogLayer() {
jQuery('.wfsr').wrap('<div class="wfsr_fog" />');
}
function hideWaitingFogLayer() {
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 */
@ -1124,9 +1134,11 @@ function doUpdateModule(module) {
var params = new Array();
params['module_name'] = module;
exec_xml('install','procInstallAdminUpdate',params, completeInstallModule);
showWaitingFogLayer();
}
function completeInstallModule(ret_obj) {
hideWaitingFogLayer();
alert(ret_obj['message']);
location.reload();
}