From 08ff08c4e62f3e0a636d208676d3046ffef1c528 Mon Sep 17 00:00:00 2001 From: mdipierro Date: Wed, 19 Dec 2012 11:44:30 -0600 Subject: [PATCH] reverted the - button after list:string because of problems --- VERSION | 2 +- gluon/sqlhtml.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 66404887..5a5b1ed1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.3.2 (2012-12-19 11:37:10) dev +Version 2.3.2 (2012-12-19 11:43:48) dev diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index c25858cc..01df16f4 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -263,13 +263,13 @@ class ListWidget(StringWidget): jQuery.fn.grow_input = function() { return this.each(function() { var ul = this; - jQuery(ul).find(":text").after('+ -').keypress(function (e) { return (e.which == 13) ? pe(ul, e) : true; }).next().click(function(e){ pe(ul, e) }).next().click(function(e){ rl(ul, e)}); + jQuery(ul).find(":text").after('+').keypress(function (e) { return (e.which == 13) ? pe(ul) : true; }).next().click(function(){ pe(ul) }); }); }; function pe(ul, e) { var new_line = ml(ul); rel(ul); - new_line.insertAfter(jQuery(e.target).parent()); + new_line.appendTo(ul); new_line.find(":text").focus(); return false; }