mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 15:32:40 +02:00
Merge pull request #10549 from seefo/master
Focus is now changed when adding a new list item in DS settings
This commit is contained in:
commit
f474361a7e
1 changed files with 7 additions and 0 deletions
|
@ -1379,6 +1379,8 @@ function addTableRow(row) {
|
|||
var setting_name = table.attr("name");
|
||||
row.addClass(Settings.DATA_ROW_CLASS + " " + Settings.NEW_ROW_CLASS);
|
||||
|
||||
var focusChanged = false;
|
||||
|
||||
_.each(row.children(), function(element) {
|
||||
if ($(element).hasClass("numbered")) {
|
||||
// Index row
|
||||
|
@ -1429,6 +1431,11 @@ function addTableRow(row) {
|
|||
});
|
||||
}
|
||||
|
||||
if (!focusChanged) {
|
||||
input.focus();
|
||||
focusChanged = true;
|
||||
}
|
||||
|
||||
if (isCheckbox) {
|
||||
$(input).find("input").attr("data-changed", "true");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue