reverted the - button after list:string because of problems
This commit is contained in:
@@ -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
@@ -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> <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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user