packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/res/grep.js
changeset 0 3906ca745819
equal deleted inserted replaced
-1:000000000000 0:3906ca745819
       
     1 $(function()
       
     2 	{
       
     3 		$('.grep-filter').bind('keyup', function()
       
     4 			{
       
     5 				var searchkey = $(this).val();
       
     6 				
       
     7 				if ( $(this).val() == '' )
       
     8 				{
       
     9 					$('.grep-me tr').show();
       
    10 					return;
       
    11 				}
       
    12 				
       
    13 				$('.grep-me tr').each(function(i, e)
       
    14 					{
       
    15 						if ( $('.grep-col', e).text().toLowerCase().indexOf(searchkey.toLowerCase()) > -1 )
       
    16 							$(e).show();
       
    17 						else
       
    18 							$(e).hide();
       
    19 					});
       
    20 			});
       
    21 	});