FSN#35422 Zoeken in menuopties savepoint
svn path=/Website/trunk/; revision=28077
This commit is contained in:
@@ -234,6 +234,8 @@ if (device.test(device.isTouch)) { %>
|
||||
div.scrollTop(Math.min(top, bottom - div.height() + 5));
|
||||
});
|
||||
|
||||
$("#menutabs").filterMenuByText("#menufilter");
|
||||
|
||||
}); // jQuery.ready
|
||||
|
||||
<% if (Session("logging")&2) { %>
|
||||
@@ -286,13 +288,51 @@ function menu(evt, item, regel, menu_key) // E
|
||||
<div id="topdivider" class='ui-layout-resizer' onclick="$('#frheader').toggle();$(this).toggleClass('dividerclosed');window.myResize()">
|
||||
<div id="headtoggler" class='toggler' title='<%=L("lcl_toggler")%>'></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
jQuery.fn.filterMenuByText = function(textbox, selectSingleMatch) {
|
||||
return this.each(function() {
|
||||
|
||||
var menu = this;
|
||||
$(textbox).bind('change keyup', function() {
|
||||
$(menu).find("li.mk,li.mklogo").show(); // Alle koppen zichtbaar
|
||||
$(menu).find("li.mk ul").show(); // Alle koppen open
|
||||
|
||||
var search = $.trim($(this).val()).toLowerCase();
|
||||
if (!search)
|
||||
{
|
||||
$(menu).find("li.mk ul").hide(); // Alle koppen dicht
|
||||
$(menu).find("li.mi").show();
|
||||
return;
|
||||
}
|
||||
|
||||
$(menu).find("li.mi").each(function(){
|
||||
var text = $(this).text().toLowerCase();
|
||||
var moretext = ($(this).find("span.rsTruncmore").attr('resttxt')||"").toLowerCase();
|
||||
$(this).toggle(text.indexOf(search) > -1 || moretext.indexOf(search) > -1);
|
||||
});
|
||||
|
||||
// Koppen hidden waar niets over is
|
||||
$(menu).find("li.mk,li.mklogo").each(function(){
|
||||
// mist inactieve tabs var cnt=$(this).find("li.mi:visible").length;
|
||||
var cnt = $(this).find("li.mi").filter(function() {
|
||||
return $(this).css('display') !== 'none';
|
||||
}).length;
|
||||
$(this).toggle(cnt > 0);
|
||||
});
|
||||
return;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
<% }
|
||||
|
||||
if (S("PerformInterval")>0 && user.checkAutorisation("WEB_PERMON", true)) { %>
|
||||
<iframe id="bgPerformance" src="../Fac/PerformanceTester.asp" style="display:none"><!--het frame voor performancemetingen--></iframe>
|
||||
<% }
|
||||
if (!noMenu) {
|
||||
%><div id="menutabs" <%= S("menu_start_open")?"":" style='display:none'" %>><%
|
||||
%><div id="menutabs" <%= S("menu_start_open")?"":" style='display:none'" %>><input id='menufilter' type='text'><%
|
||||
generateMenu(1);
|
||||
%></div>
|
||||
<div id="menudivider" class='ui-layout-resizer <%= S("menu_start_open")?"":"dividerclosed" %>' onclick="toggleMenu(this);">
|
||||
|
||||
Reference in New Issue
Block a user