notebookbar: don't send events to core
switching tabs should not send events to the core notebookbar is online-only widget Signed-off-by: Szymon Kłos <szymon.klos@collabora.com> Change-Id: I39c487d3c91f1fe858438e03fd9369f3dc571f52
This commit is contained in:
parent
9daba64dc1
commit
eaca5e32bd
2 changed files with 6 additions and 2 deletions
|
@ -1210,9 +1210,12 @@ L.Control.JSDialogBuilder = L.Control.extend({
|
|||
builder.wizard.setTabs(tabsContainer, builder);
|
||||
|
||||
tabs.forEach(function (tab, index) {
|
||||
var eventHandler = builder._createTabClick(builder, index, tabs, contentDivs, tabIds);
|
||||
tab.addEventListener('click', function(event) {
|
||||
builder._createTabClick(builder, index, tabs, contentDivs, tabIds)(event);
|
||||
eventHandler(event);
|
||||
if (!data.noCoreEvents) {
|
||||
builder.callback('tabcontrol', 'selecttab', tabWidgetRootContainer, index, builder);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -2863,6 +2863,7 @@ L.Control.NotebookbarWriter = L.Control.Notebookbar.extend({
|
|||
{
|
||||
'id': 'ContextContainer',
|
||||
'type': 'tabcontrol',
|
||||
'noCoreEvents': true,
|
||||
'text': '',
|
||||
'enabled': 'true',
|
||||
'selected': selectedPage,
|
||||
|
|
Loading…
Reference in a new issue