mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 16:49:58 +09:00
add a upate module function and install module function.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11807 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
775069466f
commit
3c0f9f7098
1 changed files with 36 additions and 0 deletions
|
|
@ -1,4 +1,40 @@
|
||||||
/* NHN (developers@xpressengine.com) */
|
/* NHN (developers@xpressengine.com) */
|
||||||
|
// insert fog layer
|
||||||
|
function showWaitingFogLayer() {
|
||||||
|
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();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// install module
|
||||||
|
function doInstallModule(module) {
|
||||||
|
var params = new Array();
|
||||||
|
params['module_name'] = module;
|
||||||
|
exec_xml('install','procInstallAdminInstall',params, completeInstallModule);
|
||||||
|
showWaitingFogLayer();
|
||||||
|
}
|
||||||
|
|
||||||
|
// upgrade module
|
||||||
|
function doUpdateModule(module) {
|
||||||
|
var params = new Array();
|
||||||
|
params['module_name'] = module;
|
||||||
|
exec_xml('install','procInstallAdminUpdate',params, completeInstallModule);
|
||||||
|
showWaitingFogLayer();
|
||||||
|
}
|
||||||
|
|
||||||
|
function completeInstallModule(ret_obj) {
|
||||||
|
alert(ret_obj['message']);
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
// iSO mobile device toolbar remove
|
// iSO mobile device toolbar remove
|
||||||
window.scrollTo(0,0);
|
window.scrollTo(0,0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue