/**
* Selects the first tab containing an element with class `formError`.
*/
-function selectErroneousTabs(): void {
+export function selectErroneousTabs(): void {
_tabMenus.forEach((tabMenu) => {
let foundError = false;
tabMenu.getContainers().forEach((container) => {
submitButton.disabled = false;
}
- require(['WoltLabSuite/Core/Ui/TabMenu'], function(UiTabMenu) {
- UiTabMenu._selectErroneousTabs();
+ require(['WoltLabSuite/Core/Ui/TabMenu'], ({ selectErroneousTabs }) => {
+ selectErroneousTabs();
});
}
define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Dom/Util", "./TabMenu/Simple", "./CloseOverlay", "./Screen", "./Scroll"], function (require, exports, tslib_1, Listener_1, Util_1, Simple_1, CloseOverlay_1, UiScreen, UiScroll) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.scrollToTab = exports.getTabMenu = exports.setup = void 0;
+ exports.scrollToTab = exports.getTabMenu = exports.setup = exports.selectErroneousTabs = void 0;
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
Simple_1 = tslib_1.__importDefault(Simple_1);
});
});
}
+ exports.selectErroneousTabs = selectErroneousTabs;
function scrollEnable(isSetup) {
_enableTabScroll = true;
_tabMenus.forEach((tabMenu) => {