From a7ab4d03148c4549a2c0c99a5424f04ccecdfcc6 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 5 Feb 2015 14:26:10 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/machines.js | 5 +++++ 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) { 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 9930a94f4d..f63e8977fb 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 @@ - + {% else %} -- cgit v1.2.3-54-g00ecf