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