From dee3a3b655a5c4eeb3f401f80b67f0da3cb4263e Mon Sep 17 00:00:00 2001 From: Massimo Date: Fri, 8 Mar 2013 10:06:03 -0600 Subject: [PATCH] fixed issue 1358, himBH>jQuery, thanks FeDjango --- VERSION | 2 +- gluon/sqlhtml.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 24287e7a..acad1af6 100644 --- a/VERSION +++ b/VERSION @@ -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 diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index c4b4a20c..288977fb 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -286,9 +286,9 @@ jQuery.fn.grow_input = function() { function pe(ul, e) { var new_line = ml(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 - new_line.insertAfter($(e.target).parent()); + new_line.insertAfter(jQuery(e.target).parent()); } else { //the line we clicked on was deleted, just add to end of list new_line.appendTo(ul); @@ -299,7 +299,7 @@ function pe(ul, e) { function rl(ul, e) { if (jQuery(ul).children().length > 1) { //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) {