diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/machines.js | 5 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/machines.html | 4 |
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 %} |