summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-05 14:26:10 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-10 23:07:50 +0000
commita7ab4d03148c4549a2c0c99a5424f04ccecdfcc6 (patch)
treefc877b023402fbf0bf66d73ff7727cea220bc12b /bitbake
parent9e8798fd37fb2c8e48a4cdab0a40a8aa62cd3fd3 (diff)
downloadpoky-a7ab4d03148c4549a2c0c99a5424f04ccecdfcc6.tar.gz
bitbake: toaster: All Machines fix reset search link
In firefox this link wasn't valid as it was inside a button element. Remove this and add a click handler for the button. (Bitbake rev: 97366eae1d5c2c84b03b3e019480e56e03f812da) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/machines.js5
-rw-r--r--bitbake/lib/toaster/toastergui/templates/machines.html4
2 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/machines.js b/bitbake/lib/toaster/toastergui/static/js/machines.js
index 1b7ea36893..ee8c9804cc 100644
--- a/bitbake/lib/toaster/toastergui/static/js/machines.js
+++ b/bitbake/lib/toaster/toastergui/static/js/machines.js
@@ -90,4 +90,9 @@ function machinesPageInit (ctx) {
90 window.location.replace(ctx.projectPageUrl); 90 window.location.replace(ctx.projectPageUrl);
91 }, null); 91 }, null);
92 }); 92 });
93
94 $("#show-all-btn").click(function(){
95 $("#search").val("")
96 $("#searchform").submit();
97 });
93} 98}
diff --git a/bitbake/lib/toaster/toastergui/templates/machines.html b/bitbake/lib/toaster/toastergui/templates/machines.html
index 9930a94f4d..f63e8977fb 100644
--- a/bitbake/lib/toaster/toastergui/templates/machines.html
+++ b/bitbake/lib/toaster/toastergui/templates/machines.html
@@ -34,7 +34,7 @@
34 {% if objects.paginator.count != 0 %} 34 {% if objects.paginator.count != 0 %}
35 {{objects.paginator.count}} machines found 35 {{objects.paginator.count}} machines found
36 {% else %} 36 {% else %}
37 No Machines found 37 No machines found
38 {% endif %} 38 {% endif %}
39 {% else %} 39 {% else %}
40 40
@@ -54,7 +54,7 @@
54 <input type="hidden" name="orderby" value=""> 54 <input type="hidden" name="orderby" value="">
55 <input type="hidden" name="page" value="1"> 55 <input type="hidden" name="page" value="1">
56 <button class="btn" type="submit" value="Search">Search</button> 56 <button class="btn" type="submit" value="Search">Search</button>
57 <button type="submit" class="btn btn-link"><a href="{%url 'machines' %}">Show all machines</a></button> 57 <button type="submit" class="btn btn-link" id="show-all-btn">Show all machines</button>
58 </form> 58 </form>
59 </div> 59 </div>
60{% else %} 60{% else %}