]> git.mxchange.org Git - friendica.git/commitdiff
bugfix: -frio- save search button should be only visible if the feature is enabled
authorrabuzarus <>
Tue, 2 Jan 2018 14:48:11 +0000 (15:48 +0100)
committerrabuzarus <>
Tue, 2 Jan 2018 14:48:11 +0000 (15:48 +0100)
view/theme/frio/templates/searchbox.tpl

index 7d6fbef65427e45941f9faab8a172faa8cdb9b62..d95d1a4114315d7ae45fa1217cf45c4ebbf10457 100644 (file)
@@ -47,8 +47,10 @@ Some parts of this template will be moved by js to other places (see theme.js) -
                </form>
        </div>
        {{* This form is inserted as experiment to move the search-save button to the second navbar with js *}}
+       {{if $savedsearch}}
        <form id="search-save-form" action="{{$action_url}}" method="get" >
                <input type="hidden" name="search" value="{{$s}}" />
                <button class="btn btn-primary btn-sm btn-main pull-right" type="submit" name="save" id="search-save" value="{{$save_label}}"><i class="fa fa-floppy-o fa-2x" aria-hidden="true"></i></button>
        </form>
+       {{/if}}
 </div>