packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/res/grep.js
author Dan Fuhry <dan@fuhry.us>
Fri, 18 Jan 2013 19:59:50 -0500
changeset 5 cdd708efa505
parent 0 3906ca745819
permissions -rw-r--r--
Apparently Ubuntu switched the location of Kerberos files?

$(function()
	{
		$('.grep-filter').bind('keyup', function()
			{
				var searchkey = $(this).val();
				
				if ( $(this).val() == '' )
				{
					$('.grep-me tr').show();
					return;
				}
				
				$('.grep-me tr').each(function(i, e)
					{
						if ( $('.grep-col', e).text().toLowerCase().indexOf(searchkey.toLowerCase()) > -1 )
							$(e).show();
						else
							$(e).hide();
					});
			});
	});