mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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:
parent
5b929f3f5e
commit
7ce022b027
1 changed files with 10 additions and 2 deletions
|
|
@ -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() });
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue