mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +02:00
fix keyboard behaviour for category tables
This commit is contained in:
parent
1474f22fd7
commit
79cb0ba074
1 changed files with 2 additions and 2 deletions
|
@ -216,8 +216,8 @@ $(document).ready(function(){
|
||||||
sibling = sibling.next();
|
sibling = sibling.next();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sibling.hasClass(Settings.ADD_DEL_BUTTONS_CLASS)) {
|
// for tables with categories we add the entry and setup the new row on enter
|
||||||
sibling.find('.' + Settings.ADD_ROW_BUTTON_CLASS).click();
|
if (sibling.find("." + Settings.ADD_CATEGORY_BUTTON_CLASS).length) {
|
||||||
sibling.find("." + Settings.ADD_CATEGORY_BUTTON_CLASS).click();
|
sibling.find("." + Settings.ADD_CATEGORY_BUTTON_CLASS).click();
|
||||||
|
|
||||||
// set focus to the first input in the new row
|
// set focus to the first input in the new row
|
||||||
|
|
Loading…
Reference in a new issue