mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +09:00
1. jQuery뿐 아니라 여러 javascript 의 플러그인 사용을 위해 template handler에 <!--%load_js_plugin("이름")--> 기능 추가 ( ./common/js/plugins/이름/plugin.load 파일에 기재된 js/css, 또는 lang을 import 함)
2. 1번에 의해 ui.datepicker, ui.tree를 플러그인으로 빼서 적용 3. jquery의 버전별 이름이 생길 문제를 대비하여 jquery.js로 파일 이름 변경 4. js/css파일들은 크기보다 그 개수가 적어야 함으로 jquery-1.2.6.fix.js를 common.js 파일로 통합 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5083 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d2d9b2c3a2
commit
5d549bffd7
57 changed files with 149 additions and 366 deletions
|
|
@ -2,7 +2,7 @@
|
|||
function homepageLoadMenuInfo(url){
|
||||
// clear tree;
|
||||
jQuery('#menu > ul > li > ul').remove();
|
||||
if(jQuery("ul.simpleTree > li > a").size() ==0)jQuery('<a href="#" class="add"><img src="./common/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){homepageAddMenu(0,e);}).appendTo("ul.simpleTree > li");
|
||||
if(jQuery("ul.simpleTree > li > a").size() ==0)jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){homepageAddMenu(0,e);}).appendTo("ul.simpleTree > li");
|
||||
|
||||
//ajax get data and transeform ul il
|
||||
jQuery.get(url,function(data){
|
||||
|
|
@ -16,13 +16,13 @@ function homepageLoadMenuInfo(url){
|
|||
var node = jQuery('<li id="tree_'+node_srl+'"><span>'+text+'</span></li>');
|
||||
|
||||
// button
|
||||
jQuery('<a href="#" class="add"><img src="./common/tpl/images/tree/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="add"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
homepageAddMenu(node_srl,e);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="modify"><img src="./common/tpl/images/tree/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="modify"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
jQuery.exec_json("homepage.getHomepageMenuItem",{ "node_srl":node_srl},function(data){
|
||||
jQuery("#tree_"+node_srl+" > span").click();
|
||||
data.menu_info['mode'] = 'update';
|
||||
|
|
@ -34,7 +34,7 @@ function homepageLoadMenuInfo(url){
|
|||
|
||||
}).appendTo(node);
|
||||
|
||||
jQuery('<a href="#" class="delete"><img src="./common/tpl/images/tree/iconDel.gif" /></a>').bind("click",function(e){
|
||||
jQuery('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
homepageDeleteMenu(node_srl);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
|
@ -254,4 +254,4 @@ function doReloadTreeMenu(){
|
|||
|
||||
function closeTreeMenuInfo(){
|
||||
jQuery('#menuItem').css("visibility",'hidden');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<!--%import("./filter/insert_menu_item.xml")-->
|
||||
<!--%import("./filter/delete_menu_item.xml")-->
|
||||
|
||||
<!--%import("../../../../common/js/jquery.simple.tree.js",optimized=false)-->
|
||||
<!--%import("../../../../common/css/jquery.simple.tree.css",optimized=false)-->
|
||||
<!--// tree javascript plugin load -->
|
||||
<!--%load_js_plugin("ui.tree")-->
|
||||
|
||||
<h3 class="title">{$lang->cmd_homepage_menus[$act]}</h3>
|
||||
<p class="infoText">{$lang->about_homepage_act[$act]}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue