Limit editable tree click event to the tab
This permits the navigation between tabs. Closes #14393 (grafted from 9fe27176548921f8d056f006940256a68472ef42) --HG-- branch : 6.0
This commit is contained in:
@@ -1811,9 +1811,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
body = listener = jQuery(document.body);
|
||||
body = jQuery(document.body);
|
||||
if (body.hasClass('modal-open')) {
|
||||
listener = this.tree.el.parents('.modal').last();
|
||||
} else {
|
||||
listener = this.tree.el.parents('.tab-pane').last();
|
||||
}
|
||||
var handler = function(event_) {
|
||||
if ((event_.currentTarget == body[0]) &&
|
||||
@@ -1826,7 +1828,7 @@
|
||||
event_.stopPropagation();
|
||||
return;
|
||||
}
|
||||
body.off('click.sao.editabletree');
|
||||
listener.off('click.sao.editabletree');
|
||||
this.tree.edit_row(null);
|
||||
return true;
|
||||
}.bind(this);
|
||||
|
||||
Reference in New Issue
Block a user