mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-20 19:59:54 +09:00
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:
parent
d0d528d943
commit
e734c402db
1 changed files with 12 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue