commit: de6064994ef4854ccfb960947398f7b0cd565030
parent 525833bea7ea41f4794899dc0e8f6b3d05e21a85
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date: Thu, 15 Jan 2015 16:03:30 +0100
[enh] show text "Start search" instead of icon, if javascript is disabled
Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
@@ -36,7 +36,7 @@
</script>
<noscript>
<style type="text/css">
- .tab-content > .active_if_nojs, .active_if_nojs {display: block;}
+ .tab-content > .active_if_nojs, .active_if_nojs {display: block !important; visibility: visible !important;}
.margin_top_if_nojs {margin-top: 20px;}
.hide_if_nojs {display: none !important;overflow:none !important;}
.disabled_if_nojs {pointer-events: none; cursor: default; text-decoration: line-through;}
diff --git a/searx/templates/oscar/search.html b/searx/templates/oscar/search.html
@@ -3,7 +3,7 @@
<div class="input-group col-sm-12">
<input type="search" name="q" class="form-control" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
<span class="input-group-btn">
- <button type="submit" class="btn btn-default">{{ icon('search') }}<span class="sr-only">{{ _('Start search') }}</span></button>
+ <button type="submit" class="btn btn-default"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
</span>
</div>
<div class="search_categories">
diff --git a/searx/templates/oscar/search_full.html b/searx/templates/oscar/search_full.html
@@ -4,7 +4,7 @@
<div class="input-group col-md-8 col-md-offset-2">
<input type="search" name="q" class="form-control input-lg autofocus" id="q" placeholder="{{ _('Search for...') }}" autocomplete="off" value="{{ q }}">
<span class="input-group-btn">
- <button type="submit" class="btn btn-default input-lg">{{ icon('search') }}<span class="sr-only">{{ _('Start search') }}</span></button>
+ <button type="submit" class="btn btn-default input-lg"><span class="hide_if_nojs">{{ icon('search') }}</span><span class="hidden active_if_nojs">{{ _('Start search') }}</span></button>
</span>
</div>