fixed issue 1358, himBH>jQuery, thanks FeDjango
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.4.2-stable+timestamp.2013.03.06.12.37.02
|
Version 2.4.2-stable+timestamp.2013.03.08.10.05.09
|
||||||
|
|||||||
+3
-3
@@ -286,9 +286,9 @@ jQuery.fn.grow_input = function() {
|
|||||||
function pe(ul, e) {
|
function pe(ul, e) {
|
||||||
var new_line = ml(ul);
|
var new_line = ml(ul);
|
||||||
rel(ul);
|
rel(ul);
|
||||||
if ($(e.target).parent().is(':visible')) {
|
if (jQuery(e.target).parent().is(':visible')) {
|
||||||
//make sure we didn't delete the element before we insert after
|
//make sure we didn't delete the element before we insert after
|
||||||
new_line.insertAfter($(e.target).parent());
|
new_line.insertAfter(jQuery(e.target).parent());
|
||||||
} else {
|
} else {
|
||||||
//the line we clicked on was deleted, just add to end of list
|
//the line we clicked on was deleted, just add to end of list
|
||||||
new_line.appendTo(ul);
|
new_line.appendTo(ul);
|
||||||
@@ -299,7 +299,7 @@ function pe(ul, e) {
|
|||||||
function rl(ul, e) {
|
function rl(ul, e) {
|
||||||
if (jQuery(ul).children().length > 1) {
|
if (jQuery(ul).children().length > 1) {
|
||||||
//only remove if we have more than 1 item so the list is never empty
|
//only remove if we have more than 1 item so the list is never empty
|
||||||
$(e.target).parent().remove();
|
jQuery(e.target).parent().remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function ml(ul) {
|
function ml(ul) {
|
||||||
|
|||||||
Reference in New Issue
Block a user