mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Fix broken relative URL in category tree editor
This commit is contained in:
parent
01424ddd2d
commit
bd13a73d78
2 changed files with 5 additions and 5 deletions
|
|
@ -221,7 +221,7 @@ $.fn.simpleTree = function(opt){
|
|||
TREE.setEventLine($('.line, .line-last', obj));
|
||||
};
|
||||
TREE.setTrigger = function(node){
|
||||
$('>span',node).before('<img class="trigger" src="./common/js/plugins/ui.tree/images/spacer.gif" border=0>');
|
||||
$('>span',node).before('<img class="trigger" src="' + window.default_url + 'common/js/plugins/ui.tree/images/spacer.gif" border=0>');
|
||||
var trigger = $('>.trigger', node);
|
||||
trigger.click(function(event){
|
||||
TREE.nodeToggle(node);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ function Tree(url){
|
|||
$('#menu > ul > li > ul').remove();
|
||||
|
||||
if($("ul.simpleTree > li > a").size() == 0){
|
||||
$('<a href="#__category_info" class="add modalAnchor"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>')
|
||||
$('<a href="#__category_info" class="add modalAnchor"><img src="' + default_url + 'common/js/plugins/ui.tree/images/iconAdd.gif" /></a>')
|
||||
.bind('before-open.mw', function(e){
|
||||
addNode(0,e);
|
||||
})
|
||||
|
|
@ -41,7 +41,7 @@ function Tree(url){
|
|||
}
|
||||
|
||||
// button
|
||||
$('<a href="#__category_info" class="add modalAnchor"><img src="./common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
$('<a href="#__category_info" class="add modalAnchor"><img src="' + default_url + 'common/js/plugins/ui.tree/images/iconAdd.gif" /></a>').bind("click",function(e){
|
||||
$("#tree_"+node_srl+" > span").click();
|
||||
})
|
||||
.bind('before-open.mw', function(e){
|
||||
|
|
@ -50,7 +50,7 @@ function Tree(url){
|
|||
.appendTo(node)
|
||||
.xeModalWindow();
|
||||
|
||||
$('<a href="#__category_info" class="modify modalAnchor"><img src="./common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
$('<a href="#__category_info" class="modify modalAnchor"><img src="' + default_url + 'common/js/plugins/ui.tree/images/iconModify.gif" /></a>').bind("click",function(e){
|
||||
$("#tree_"+node_srl+" > span").click();
|
||||
})
|
||||
.bind('before-open.mw', function(e){
|
||||
|
|
@ -59,7 +59,7 @@ function Tree(url){
|
|||
.appendTo(node)
|
||||
.xeModalWindow();
|
||||
|
||||
$('<a href="#" class="delete"><img src="./common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
$('<a href="#" class="delete"><img src="' + default_url + 'common/js/plugins/ui.tree/images/iconDel.gif" /></a>').bind("click",function(e){
|
||||
deleteNode(node_srl);
|
||||
return false;
|
||||
}).appendTo(node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue