diff --git a/modules/admin/tpl/js/admin.js b/modules/admin/tpl/js/admin.js index 6cdb234ef..38c92e87a 100644 --- a/modules/admin/tpl/js/admin.js +++ b/modules/admin/tpl/js/admin.js @@ -1112,11 +1112,21 @@ $('.filebox') }); +/* insert fog layer */ +function showWaitingFogLayer() { + jQuery('.wfsr').wrap('
'); +} + +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(); }