mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
rearrange search functionality
This commit is contained in:
parent
646eae59a2
commit
d9c23291de
10 changed files with 31 additions and 80 deletions
|
@ -4,12 +4,12 @@ function filter_table() {
|
|||
$('.searchable tr').filter(function () {
|
||||
return rex.test($(this).text());
|
||||
}).show();
|
||||
Cookies.set("instances_filter", $(this).val(), { expires: 1 });
|
||||
Cookies.set(document.title + "_filter", $(this).val(), { expires: 1 });
|
||||
}
|
||||
$(document).ready(function () {
|
||||
instances_filter_cookie = Cookies.get("instances_filter");
|
||||
if (instances_filter_cookie) {
|
||||
$('#filter').val(instances_filter_cookie);
|
||||
filter_cookie = Cookies.get(document.title + "_filter");
|
||||
if (filter_cookie) {
|
||||
$('#filter').val(filter_cookie);
|
||||
$('#filter').each(filter_table);
|
||||
}
|
||||
(function ($) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue