mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
"Browser name" text is removed from the label in the menu creation panel.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11460 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e45155efad
commit
20536356b2
1 changed files with 37 additions and 9 deletions
|
|
@ -86,7 +86,7 @@
|
||||||
<h1 class="_title"></h1>
|
<h1 class="_title"></h1>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<label for="menuName1">메뉴이름(브라우저 제목)</label>
|
<label for="menuName1">메뉴이름</label>
|
||||||
<input id="menuName1" type="text" required />
|
<input id="menuName1" type="text" required />
|
||||||
<label><input type="checkbox" class="multilingual"> 다국어 사용</label>
|
<label><input type="checkbox" class="multilingual"> 다국어 사용</label>
|
||||||
<fieldset class="multilingual_item">
|
<fieldset class="multilingual_item">
|
||||||
|
|
@ -543,7 +543,6 @@
|
||||||
</div>
|
</div>
|
||||||
<style>
|
<style>
|
||||||
/* Site */
|
/* Site */
|
||||||
body>.x{max-width:none}
|
|
||||||
.x>.body>.content{margin-bottom:0}
|
.x>.body>.content{margin-bottom:0}
|
||||||
#site{position:relative;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-top:10px}
|
#site{position:relative;overflow-x:auto;overflow-y:hidden;white-space:nowrap;margin-top:10px}
|
||||||
#site .btnBoth,
|
#site .btnBoth,
|
||||||
|
|
@ -716,6 +715,8 @@ function onSiteMapReceived(htData){
|
||||||
|
|
||||||
$("#siteMapTree").html(createTreeMarkup(aMenuList));
|
$("#siteMapTree").html(createTreeMarkup(aMenuList));
|
||||||
|
|
||||||
|
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
|
||||||
|
|
@ -723,6 +724,7 @@ function onSiteMapReceived(htData){
|
||||||
//"themes","json_data","ui","crrm","cookies","dnd","search","types","hotkeys","contextmenu"
|
//"themes","json_data","ui","crrm","cookies","dnd","search","types","hotkeys","contextmenu"
|
||||||
// each plugin you have included can have its own config object
|
// each plugin you have included can have its own config object
|
||||||
"core" : { }
|
"core" : { }
|
||||||
|
//"core" : { "initially_open" : [ "nhtml_1" ] }
|
||||||
// it makes sense to configure a plugin only if overriding the defaults
|
// it makes sense to configure a plugin only if overriding the defaults
|
||||||
})
|
})
|
||||||
.bind("loaded.jstree", function (event, data) {
|
.bind("loaded.jstree", function (event, data) {
|
||||||
|
|
@ -731,10 +733,19 @@ function onSiteMapReceived(htData){
|
||||||
var sRenameId = $._xeAdminVar.sRenameOnload;
|
var sRenameId = $._xeAdminVar.sRenameOnload;
|
||||||
$._xeAdminVar.sRenameOnload = null;
|
$._xeAdminVar.sRenameOnload = null;
|
||||||
|
|
||||||
|
var sSelectOnload = $._xeAdminVar.sSelectOnload;
|
||||||
|
$._xeAdminVar.sSelectOnload = null;
|
||||||
|
|
||||||
if(sRenameId){
|
if(sRenameId){
|
||||||
console.log('renaming', sRenameId);
|
console.log('renaming', sRenameId);
|
||||||
$("#siteMapTree").jstree("rename", $("#menu"+sRenameId));
|
$("#siteMapTree").jstree("rename", $("#menu"+sRenameId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(sSelectOnload){
|
||||||
|
console.log('selecting', sSelectOnload);
|
||||||
|
$("#siteMapTree").jstree("select_node", $("#menu"+sSelectOnload));
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
.bind("rename_node.jstree", function(event, data){
|
.bind("rename_node.jstree", function(event, data){
|
||||||
console.log(1, event, data);
|
console.log(1, event, data);
|
||||||
|
|
@ -926,6 +937,11 @@ function loadSiteMap(){
|
||||||
$.exec_json("menu.getMenuAdminSiteMap", params, onSiteMapReceived);
|
$.exec_json("menu.getMenuAdminSiteMap", params, onSiteMapReceived);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearInputs($elm){
|
||||||
|
var $ = jQuery;
|
||||||
|
|
||||||
|
$elm.find('input').val("");
|
||||||
|
}
|
||||||
jQuery(function($){
|
jQuery(function($){
|
||||||
var _hide = $.fn.hide;
|
var _hide = $.fn.hide;
|
||||||
$.fn.hide = function(speed, easing, callback, htOpt) {
|
$.fn.hide = function(speed, easing, callback, htOpt) {
|
||||||
|
|
@ -1086,16 +1102,18 @@ jQuery(function($){
|
||||||
var htItemTypes = htData.menu_types;
|
var htItemTypes = htData.menu_types;
|
||||||
|
|
||||||
var item;
|
var item;
|
||||||
|
var sModuleTitle;
|
||||||
for(var sModuleName in htItemTypes){
|
for(var sModuleName in htItemTypes){
|
||||||
//item = htData.menu_types[i];
|
//item = htData.menu_types[i];
|
||||||
if(htData.hasOwnProperty(item)) continue;
|
if(htData.hasOwnProperty(item)) continue;
|
||||||
|
|
||||||
item = htItemTypes[sModuleName];
|
item = htItemTypes[sModuleName];
|
||||||
|
sModuleTitle = item.title;
|
||||||
console.log(item);
|
console.log(item);
|
||||||
|
|
||||||
sResult += $.tmpl( "menuTypeItem", {
|
sResult += $.tmpl( "menuTypeItem", {
|
||||||
ModuleName : sModuleName,
|
ModuleName : sModuleName,
|
||||||
ModuleTitle : sModuleName
|
ModuleTitle : sModuleTitle
|
||||||
} ).get()[0].outerHTML;
|
} ).get()[0].outerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1144,6 +1162,9 @@ jQuery(function($){
|
||||||
|
|
||||||
$(this).find("._title").html($._xeAdminVar.sSelectedModuleTitle);
|
$(this).find("._title").html($._xeAdminVar.sSelectedModuleTitle);
|
||||||
});
|
});
|
||||||
|
$('#add_page').bind("hide", function(){
|
||||||
|
clearInputs($('#add_page'));
|
||||||
|
});
|
||||||
$('#add_page ._save').bind("click", function(){
|
$('#add_page ._save').bind("click", function(){
|
||||||
var sMenuName = $("#menuName1").val();
|
var sMenuName = $("#menuName1").val();
|
||||||
var sMID = $("#mid1").val();
|
var sMID = $("#mid1").val();
|
||||||
|
|
@ -1172,20 +1193,27 @@ jQuery(function($){
|
||||||
var response_tags = new Array('menu_item_srl');
|
var response_tags = new Array('menu_item_srl');
|
||||||
params['ruleset'] = "insertMenuItem";
|
params['ruleset'] = "insertMenuItem";
|
||||||
params['act'] = "procMenuAdminInsertItem";
|
params['act'] = "procMenuAdminInsertItem";
|
||||||
params['menu_srl'] = 59;
|
|
||||||
params['menu_name_key'] = "";
|
params['menu_name_key'] = "";
|
||||||
//params['title'] = 'title'; -> 이 값 넣으면 사이트맵 생성됨
|
|
||||||
params['menu_name'] = sMenuName;
|
params['menu_name'] = sMenuName;
|
||||||
params['module_type'] = sSelectedModuleName;
|
params['module_type'] = sSelectedModuleName;
|
||||||
params['mid'] = sMID;
|
params['mid'] = sMID;
|
||||||
params['menu_open_window'] = "N";
|
params['menu_open_window'] = "N";
|
||||||
params['menu_expand'] = "N"
|
params['menu_expand'] = "N"
|
||||||
params['parent_srl'] = sSelectedMenuSrl;
|
params['parent_srl'] = sSelectedMenuSrl;
|
||||||
/*
|
|
||||||
ruleset=insertMenuItem&act=procMenuAdminInsert&menu_srl=&menu_name_key=&menu_name=3333&module_type=OUTSIDE&mid=1111&menu_open_window=N&menu_expand=N&parent_srl=60&module=menu
|
|
||||||
*/
|
|
||||||
$.exec_json("menu.procMenuAdminInsertItem", params, function(htData){
|
$.exec_json("menu.procMenuAdminInsertItem", params, function(htData){
|
||||||
console.log(htData);
|
console.log(htData);
|
||||||
|
if(htData.error !== 0){
|
||||||
|
alert(htData.message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// select the newly created menu
|
||||||
|
//$._xeAdminVar.sSelectOnload = htData.menu_item_srl;
|
||||||
|
|
||||||
|
// select currently selected menu
|
||||||
|
$._xeAdminVar.sSelectOnload = $._xeAdminVar.sSelectedMenuSrl;
|
||||||
|
loadSiteMap();
|
||||||
});
|
});
|
||||||
/*
|
/*
|
||||||
Array
|
Array
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue