remove firstsearch and add storable dep
This commit is contained in:
1
Build.PL
1
Build.PL
@@ -64,6 +64,7 @@ Module::Build->new(
|
||||
'Sereal' => '0',
|
||||
'Socket6' => '0.23',
|
||||
'Starman' => '0.4008',
|
||||
'Storable' => 0,
|
||||
'SNMP::Info' => '3.38',
|
||||
'SQL::Translator' => '0.11018',
|
||||
'Template' => '2.24',
|
||||
|
||||
@@ -62,8 +62,6 @@ hook 'before' => sub {
|
||||
return unless (request->path eq uri_for('/device')->path
|
||||
or index(request->path, uri_for('/ajax/content/device')->path) == 0);
|
||||
|
||||
# force always setting params manually
|
||||
params->{'firstsearch'} = 'on';
|
||||
# TODO set cookie
|
||||
# if (param('reset') or not param('tab') or param('tab') ne 'ports') {
|
||||
};
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
<ul class="dropdown-menu">
|
||||
[% FOREACH item IN settings._reports_menu.$category %]
|
||||
[% NEXT IF settings._reports.$item.hidden %]
|
||||
<li><a href="[% uri_for('/report/' _ item) %]?firstsearch=on">[% settings._reports.$item.label | html_entity %]</a></li>
|
||||
<li><a href="[% uri_for('/report/' _ item) %]">[% settings._reports.$item.label | html_entity %]</a></li>
|
||||
[% END %]
|
||||
</ul>
|
||||
</li>
|
||||
@@ -138,7 +138,6 @@
|
||||
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
|
||||
<input placeholder="Find Anything" class="search-query span3"
|
||||
id="nq" name="q" value="[% display_name %]" type="text" autocomplete="off"/>
|
||||
<input name="firstsearch" type="hidden" value="on">
|
||||
<div class="btn-group nd_navbar-search-group">
|
||||
<button class="btn btn-inverse nd_navbar-search-icon">
|
||||
<span style="font-size: 18px;">
|
||||
|
||||
Reference in New Issue
Block a user