add list of cols to cookie
This commit is contained in:
@@ -58,13 +58,13 @@
|
|||||||
update_browser_history('[% tab.tag %]', pgtitle);
|
update_browser_history('[% tab.tag %]', pgtitle);
|
||||||
copy_navbar_to_sidebar('[% tab.tag %]');
|
copy_navbar_to_sidebar('[% tab.tag %]');
|
||||||
[% IF tab.tag == 'ports' %]
|
[% IF tab.tag == 'ports' %]
|
||||||
$.cookie(
|
var cookie = $('#ports_form').find('input,select')
|
||||||
'nd_ports-form'
|
.not('#nd_port-query,input[name="q"],input[name="tab"]')
|
||||||
,$('#ports_form').find("input")
|
.serializeArray();
|
||||||
.not('#nd_port-query,input[name="q"],input[name="tab"]')
|
$('#ports_form').find('input[type="checkbox"]').map(function() {
|
||||||
.serialize()
|
cookie.push({'name': 'columns', 'value': $(this).attr('name')});
|
||||||
,{ expires: 365 }
|
});
|
||||||
);
|
$.cookie('nd_ports-form', $.param(cookie) ,{ expires: 365 });
|
||||||
[% END %]
|
[% END %]
|
||||||
do_search(event, '[% tab.tag %]');
|
do_search(event, '[% tab.tag %]');
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user