remove firstsearch and add storable dep

This commit is contained in:
Oliver Gorwits
2017-12-10 13:54:38 +00:00
parent b8ab3b396c
commit 88cb2b0b06
3 changed files with 2 additions and 4 deletions

View File

@@ -64,6 +64,7 @@ Module::Build->new(
'Sereal' => '0', 'Sereal' => '0',
'Socket6' => '0.23', 'Socket6' => '0.23',
'Starman' => '0.4008', 'Starman' => '0.4008',
'Storable' => 0,
'SNMP::Info' => '3.38', 'SNMP::Info' => '3.38',
'SQL::Translator' => '0.11018', 'SQL::Translator' => '0.11018',
'Template' => '2.24', 'Template' => '2.24',

View File

@@ -62,8 +62,6 @@ hook 'before' => sub {
return unless (request->path eq uri_for('/device')->path return unless (request->path eq uri_for('/device')->path
or index(request->path, uri_for('/ajax/content/device')->path) == 0); or index(request->path, uri_for('/ajax/content/device')->path) == 0);
# force always setting params manually
params->{'firstsearch'} = 'on';
# TODO set cookie # TODO set cookie
# if (param('reset') or not param('tab') or param('tab') ne 'ports') { # if (param('reset') or not param('tab') or param('tab') ne 'ports') {
}; };

View File

@@ -86,7 +86,7 @@
<ul class="dropdown-menu"> <ul class="dropdown-menu">
[% FOREACH item IN settings._reports_menu.$category %] [% FOREACH item IN settings._reports_menu.$category %]
[% NEXT IF settings._reports.$item.hidden %] [% 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 %] [% END %]
</ul> </ul>
</li> </li>
@@ -138,7 +138,6 @@
<form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]"> <form class="navbar-search pull-left" method="get" action="[% uri_for('/search') %]">
<input placeholder="Find Anything" class="search-query span3" <input placeholder="Find Anything" class="search-query span3"
id="nq" name="q" value="[% display_name %]" type="text" autocomplete="off"/> 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"> <div class="btn-group nd_navbar-search-group">
<button class="btn btn-inverse nd_navbar-search-icon"> <button class="btn btn-inverse nd_navbar-search-icon">
<span style="font-size: 18px;"> <span style="font-size: 18px;">