[IMP] web: Navigation improvement in editable list view (v2)

1/ On create new record focus field should select already existing value of field,
   So user doesn't have to remove  the old value first and then enter new value.

2/ Forget about it
This commit is contained in:
Yannick Tivisse
2016-06-03 10:49:24 +02:00
parent 0ce2583157
commit ed12bfd775
@@ -379,7 +379,7 @@ ListView.include(/** @lends instance.web.ListView# */{
});
}
if (fields[focus_field]) {
fields[focus_field].$el.find('input, textarea').andSelf().filter('input, textarea').focus();
fields[focus_field].$el.find('input, textarea').andSelf().filter('input, textarea').select();
}
return record.attributes;
});