[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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user