mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +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 */
|
/* insert fog layer */
|
||||||
function showWaitingFogLayer() {
|
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() {
|
function hideWaitingFogLayer() {
|
||||||
|
jQuery('.wfsr').prev('span').remove();
|
||||||
jQuery('.wfsr').unwrap();
|
jQuery('.wfsr').unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1138,7 +1143,10 @@ function doUpdateModule(module) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function completeInstallModule(ret_obj) {
|
function completeInstallModule(ret_obj) {
|
||||||
hideWaitingFogLayer();
|
|
||||||
alert(ret_obj['message']);
|
alert(ret_obj['message']);
|
||||||
location.reload();
|
location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
jQuery(document).ready(function($){
|
||||||
|
$('body').ajaxComplete(function(){ hideWaitingFogLayer() });
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue