diff --git a/APPL/FAC/Facilitor.asp b/APPL/FAC/Facilitor.asp index 190bb9e364..d9ca18b8b4 100644 --- a/APPL/FAC/Facilitor.asp +++ b/APPL/FAC/Facilitor.asp @@ -386,16 +386,18 @@ if (device.test(device.isTouch)) { %> if (selectedTabId === null) selectedTabId = ($("#PersFAC").length && $("#ProfFAC").length) ? 1 : 0; $("#menutabs").tabs('option', 'active', selectedTabId); - <% if (!noTabs && S("menu_tab_toggles_portalmenu")==1) { - var menuitems = fillMenuArray(true); // portalOnly - %> - $("#menutabs").tabs({ + $("#menutabs").tabs({ beforeActivate: function ( event, ui ) { if ($("#menufilter").val()) // reset filter bij tabwissel $("#menufilter").val("").trigger("keyup"); - }, + } + }); + <% if (!noTabs && S("menu_tab_toggles_portalmenu")==1) { + var menuitems = fillMenuArray(true); // portalOnly + %> + $("#menutabs").tabs({ activate: function(event, ui) {