reverted the - button after list:string because of problems

This commit is contained in:
mdipierro
2012-12-19 11:44:30 -06:00
parent 267e891a9e
commit 08ff08c4e6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.3.2 (2012-12-19 11:37:10) dev
Version 2.3.2 (2012-12-19 11:43:48) dev
+2 -2
View File
@@ -263,13 +263,13 @@ class ListWidget(StringWidget):
jQuery.fn.grow_input = function() {
return this.each(function() {
var ul = this;
jQuery(ul).find(":text").after('<a href="javascript:void(0)">+</a>&nbsp;<a href="javascript:void(0)">-</a>').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('<a href="javascript:void(0)">+</a>').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;
}