[-] FO : fixed bug #PSCFV-484 - live edit bug

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15145 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-05-10 08:55:00 +00:00
parent 5a6fe7aff2
commit 77b67e5341
+5 -7
View File
@@ -91,11 +91,11 @@ $(document).ready(function() {
cancelMove = old_target; cancelMove = old_target;
if (new_target_id == '') if (new_target_id == '')
new_target_id = old_target; new_target_id = old_target;
ids = $(ui.item[0]).attr('id').split('_'); ids = $(ui.item[0]).attr('id').split('_');
newHookId = $("input[value="+new_target_id+"]").attr('name').substr(10); newHookId = $("input[value="+new_target_id+"]").attr('name').substr(10);
newHookId = newHookId.substr(0, newHookId.length -1); newHookId = newHookId.substr(0, newHookId.length -1);
new_id = ids[0] + "_" + newHookId + "_" + ids[2] + "_" + ids[3]; new_id = ids[0] + "_" + newHookId + "_" + ids[2] + "_" + ids[3] + "_" + ids[4] + "_" + ids[5] ;
$(ui.item[0]).attr('id', new_id); $(ui.item[0]).attr('id', new_id);
} }
}, },
change: function(evartent, ui) { change: function(evartent, ui) {
@@ -120,7 +120,6 @@ $(document).ready(function() {
} }
} }
}); });
// WTF
$('#' + id_hook + '').disableSelection(); $('#' + id_hook + '').disableSelection();
}); });
}); });
@@ -129,7 +128,6 @@ function getHookableList() {
hooks_list = new Array(); hooks_list = new Array();
$("input[name^=hook_list]}").each(function(e){ $("input[name^=hook_list]}").each(function(e){
hooks_list.push($(this).val()); hooks_list.push($(this).val());
// +$(this).val();
}); });
$.ajax({ $.ajax({