summaryrefslogtreecommitdiffstats
path: root/web/widget
diff options
context:
space:
mode:
Diffstat (limited to 'web/widget')
-rw-r--r--web/widget/inline.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/web/widget/inline.js b/web/widget/inline.js
index 38d288c..b5b1b8d 100644
--- a/web/widget/inline.js
+++ b/web/widget/inline.js
@@ -66,11 +66,12 @@ define(
button.prop("class", "hidden");
if (meta.type == "collection") {
- var field = $("<input>").attr({type: "text"});
+ var field = $("<input>").attr({type: "text"})
+ .change(insert);
row = $("<tr>").html($("<td>").html(field));
getter = function() { return field.val(); }
- field.change(insert);
self.appendRow(row);
+ field.focus();
}
else {
getter = function() {