summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/configvars.html
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2014-02-21 11:57:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-17 13:59:38 +0000
commitc1f97ce3ab30e3d51ff76cae4a43494382efd87f (patch)
tree87e388b1b9173c0d27f3f8273b48215156816d57 /bitbake/lib/toaster/toastergui/templates/configvars.html
parenta3ccb730cb9a3509a2ddf62bb384a9181b281bdc (diff)
downloadpoky-c1f97ce3ab30e3d51ff76cae4a43494382efd87f.tar.gz
bitbake: toaster: Don't show clear search button if text input field is empty
The clear search button should only show when the search text input field is populated. If it is empty (as it happens when a filter returns no results) the clear search button should not display. (Bitbake rev: 6cc4aaf08b51bb6cd8d1813c33989a788bd06990) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/configvars.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/configvars.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/configvars.html b/bitbake/lib/toaster/toastergui/templates/configvars.html
index ae77be88c1..d7052534fc 100644
--- a/bitbake/lib/toaster/toastergui/templates/configvars.html
+++ b/bitbake/lib/toaster/toastergui/templates/configvars.html
@@ -35,7 +35,7 @@
35 <div class="row-fluid"> 35 <div class="row-fluid">
36 <div class="alert"> 36 <div class="alert">
37 <form class="no-results input-append" id="searchform"> 37 <form class="no-results input-append" id="searchform">
38 <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/><a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a> 38 <input id="search" name="search" class="input-xxlarge" type="text" value="{{request.GET.search}}"/>{% if request.GET.search %}<a href="javascript:$('#search').val('');searchform.submit()" class="add-on btn" tabindex="-1"><i class="icon-remove"></i></a>{% endif %}
39 <button class="btn" type="submit" value="Search">Search</button> 39 <button class="btn" type="submit" value="Search">Search</button>
40 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button> 40 <button class="btn btn-link" onclick="javascript:$('#search').val('');searchform.submit()">Show all variables</button>
41 </form> 41 </form>