Permalink
Browse files

fixes #250 cut paste didn't refresh correct node when direct siblings

  • Loading branch information...
1 parent 5f1bdff commit 53250a6cec98986d7e881a0c19584792408f522c @digi604 digi604 committed Nov 21, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 cms/media/cms/js/change_list.js
View
4 cms/media/cms/js/change_list.js 100755 → 100644
@@ -161,6 +161,7 @@ $(document).ready(function() {
var jtarget = $(target);
if(jtarget.hasClass("move")) {
+ // prepare tree for move / cut paste
var id = e.target.id.split("move-link-")[1];
if(id==null){
id = e.target.parentNode.id.split("move-link-")[1];
@@ -176,6 +177,7 @@ $(document).ready(function() {
}
if(jtarget.hasClass("copy")) {
+ // prepare tree for copy
var id = e.target.id.split("copy-link-")[1];
if(id==null){
id = e.target.parentNode.id.split("copy-link-")[1];
@@ -275,7 +277,7 @@ $(document).ready(function() {
var target_id = target.parentNode.id.split("move-target-")[1];
if(action=="move") {
- moveTreeItem(jtarget, selected_page, target_id, position, tree);
+ moveTreeItem(null, selected_page, target_id, position, tree);
$('.move-target-container').hide();
}else if(action=="copy") {
site = $('#site-select')[0].value;

0 comments on commit 53250a6

Please sign in to comment.