issue 160, show fog layer when module install/update

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9334 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
flyskyko 2011-09-26 07:16:43 +00:00
parent 5b929f3f5e
commit 7ce022b027

View file

@ -1114,10 +1114,15 @@ $('.filebox')
/* insert fog layer */
function showWaitingFogLayer() {
jQuery('.wfsr').wrap('<div class="wfsr_fog" />');
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();
}
@ -1138,7 +1143,10 @@ function doUpdateModule(module) {
}
function completeInstallModule(ret_obj) {
hideWaitingFogLayer();
alert(ret_obj['message']);
location.reload();
}
jQuery(document).ready(function($){
$('body').ajaxComplete(function(){ hideWaitingFogLayer() });
});