From e734c402dbe35d892a1428e910b9d4b6cf2fc016 Mon Sep 17 00:00:00 2001 From: flyskyko Date: Mon, 26 Sep 2011 06:39:19 +0000 Subject: [PATCH] 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 --- modules/admin/tpl/js/admin.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(); }