mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Menu attr update API test
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11980 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3a57561bec
commit
cf02902bd3
1 changed files with 31 additions and 4 deletions
|
|
@ -613,12 +613,33 @@ function onSiteMapReceived(htData){
|
||||||
|
|
||||||
$("#siteMapTree").html(createTreeMarkup(aMenuList, 0));
|
$("#siteMapTree").html(createTreeMarkup(aMenuList, 0));
|
||||||
|
|
||||||
var sInitiallyOpen = [];
|
|
||||||
|
|
||||||
if($._xeAdminVar.bCut){
|
if($._xeAdminVar.bCut){
|
||||||
$._xeAdminVar.sCopySourceMenuSrl = null;
|
$._xeAdminVar.sCopySourceMenuSrl = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var sNodeSrl;
|
||||||
|
var bCopySourceFound = false;
|
||||||
|
for(var x in htNodeInfo){
|
||||||
|
sNodeSrl = htNodeInfo[x].sNodeSrl;
|
||||||
|
if(sNodeSrl && sNodeSrl === $._xeAdminVar.sCopySourceMenuSrl){
|
||||||
|
bCopySourceFound = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(!bCopySourceFound){
|
||||||
|
console.log("src found");
|
||||||
|
/*
|
||||||
|
$._xeAdminVar.sCopySourceMenuSrl = $._xeAdminVar.sSelectedMenuSrl;
|
||||||
|
$('._edit_paste').removeAttr('disabled');
|
||||||
|
$('#site_map li._isCut').removeClass('_isCut');
|
||||||
|
$('#menu'+$._xeAdminVar.sCopySourceMenuSrl).addClass('_isCut');
|
||||||
|
*/
|
||||||
|
}else{
|
||||||
|
console.log("src NOT found");
|
||||||
|
}
|
||||||
|
|
||||||
|
var sInitiallyOpen = [];
|
||||||
|
|
||||||
$("#siteMapTree")
|
$("#siteMapTree")
|
||||||
.jstree({
|
.jstree({
|
||||||
// the `plugins` array allows you to configure the active plugins on this instance
|
// the `plugins` array allows you to configure the active plugins on this instance
|
||||||
|
|
@ -1696,6 +1717,8 @@ jQuery(function($){
|
||||||
// URL shortcut
|
// URL shortcut
|
||||||
$(this).find('a[href="#fix_linkUrl"]').click();
|
$(this).find('a[href="#fix_linkUrl"]').click();
|
||||||
$(this).find('._url_link').val(htInfo.url);
|
$(this).find('._url_link').val(htInfo.url);
|
||||||
|
|
||||||
|
showMenuSelector($(this).find('._menuSelector_menuTreeContainer'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1733,7 +1756,11 @@ jQuery(function($){
|
||||||
var params = {};
|
var params = {};
|
||||||
|
|
||||||
if(htInfo.sModuleType === "_SHORTCUT"){
|
if(htInfo.sModuleType === "_SHORTCUT"){
|
||||||
sMID = $('#default ._linkMenuSrl').val();
|
if($('#fix_linkMenu').css("display") === "none"){
|
||||||
|
sMID = $('#default ._url_link').val();
|
||||||
|
}else{
|
||||||
|
sMID = $('#default ._linkMenuSrl').val();
|
||||||
|
}
|
||||||
params['shortcut_target'] = sMID;
|
params['shortcut_target'] = sMID;
|
||||||
}else{
|
}else{
|
||||||
sMID = $('#default ._mid').val();
|
sMID = $('#default ._mid').val();
|
||||||
|
|
@ -1743,7 +1770,7 @@ jQuery(function($){
|
||||||
params['menu_name'] = sMenuName;
|
params['menu_name'] = sMenuName;
|
||||||
params['menu_open_window'] = sNewWindow;
|
params['menu_open_window'] = sNewWindow;
|
||||||
params['menu_expand'] = sLeaveUnfolded;
|
params['menu_expand'] = sLeaveUnfolded;
|
||||||
|
//console.log(params);return;
|
||||||
$.exec_json("menu.procMenuAdminUpdateItem", params, function(htData){
|
$.exec_json("menu.procMenuAdminUpdateItem", params, function(htData){
|
||||||
if(htData.error !== 0){
|
if(htData.error !== 0){
|
||||||
alert(htData.message);
|
alert(htData.message);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue