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)
downloadast2050-yocto-poky-a7ab4d03148c4549a2c0c99a5424f04ccecdfcc6.zip
ast2050-yocto-poky-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 1b7ea36..ee8c980 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) {
window.location.replace(ctx.projectPageUrl);
}, null);
});
+
+ $("#show-all-btn").click(function(){
+ $("#search").val("")
+ $("#searchform").submit();
+ });
}
diff --git a/bitbake/lib/toaster/toastergui/templates/machines.html b/bitbake/lib/toaster/toastergui/templates/machines.html
index 9930a94..f63e897 100644
--- a/bitbake/lib/toaster/toastergui/templates/machines.html
+++ b/bitbake/lib/toaster/toastergui/templates/machines.html
@@ -34,7 +34,7 @@
{% if objects.paginator.count != 0 %}
{{objects.paginator.count}} machines found
{% else %}
- No Machines found
+ No machines found
{% endif %}
{% else %}
@@ -54,7 +54,7 @@
<input type="hidden" name="orderby" value="">
<input type="hidden" name="page" value="1">
<button class="btn" type="submit" value="Search">Search</button>
- <button type="submit" class="btn btn-link"><a href="{%url 'machines' %}">Show all machines</a></button>
+ <button type="submit" class="btn btn-link" id="show-all-btn">Show all machines</button>
</form>
</div>
{% else %}
OpenPOWER on IntegriCloud