mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01: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");
|
||||
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