jsdialog: send correct id on tab switch

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Change-Id: Ie098b2f6f2e6333765658e4d27eab6052735bc8f
This commit is contained in:
Szymon Kłos 2023-03-03 08:42:42 +01:00 committed by Pranam Lashkari
parent 3dde59c9d7
commit 5457c51d76

View file

@ -1090,7 +1090,7 @@ L.Control.JSDialogBuilder = L.Control.extend({
return function(event) {
builder._createTabClick(builder, id, tabs, contentDivs, tabIds)(event);
if (data.tabs[id].id - 1 >= 0)
builder.callback('tabcontrol', 'selecttab', tabsContainer, id, builder);
builder.callback('tabcontrol', 'selecttab', tabWidgetRootContainer, id, builder);
};
};
$(tabs[t]).click(fn(t));