mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-05 11:32:12 +09:00
full setup save
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@12392 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
509370c9d6
commit
c3d1e2874f
1 changed files with 9 additions and 5 deletions
|
|
@ -1666,26 +1666,30 @@ jQuery(function($){
|
|||
$(ev.target).find('._chkUseAsHome').removeAttr('disabled').removeAttr('checked');
|
||||
}
|
||||
|
||||
loadFullSetup();
|
||||
});
|
||||
function loadFullSetup(){
|
||||
$.exec_json("menu.getMenuAdminDetailSetup", {
|
||||
menu_item_srl : htNodeInfo[$._xeAdminVar.sSelectedMenuSrl].sNodeSrl
|
||||
}, function(htData){
|
||||
if(htData.simpleSetupHtml){
|
||||
$(ev.target).addClass('_hasFullSetup');
|
||||
$('#properties').addClass('_hasFullSetup');
|
||||
$('#fullSetup').find('._setupHTML').html(htData.simpleSetupHtml);
|
||||
var $form = $('#fullSetup form');
|
||||
$form.attr('target', 'submitTarget');
|
||||
$form.append($("<INPUT>").attr("type", "hidden").attr("name", "xe_js_callback").attr("value", "top.fullSetupSaved"));
|
||||
}else{
|
||||
$(ev.target).removeClass('_hasFullSetup');
|
||||
$('#properties').removeClass('_hasFullSetup');
|
||||
$._xeAdminVar.sFullSetupUrl = htData.setupUrl;
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
top.fullSetupSaved = function(htData){
|
||||
console.log(htData);
|
||||
alert('cool');
|
||||
//alert('cool');
|
||||
$('#fullSetup').hide();
|
||||
|
||||
loadFullSetup();
|
||||
};
|
||||
$('#properties').bind("hide", function(ev, htOpt){
|
||||
if(htOpt && htOpt.bOpeningProp) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue