summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-04-27 15:05:18 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-05-08 17:42:06 +0100
commit1fe445d0b5d345a7b0fc490441abcd50d260a682 (patch)
treedce9708a13dbeecd744e02a02688114d4a9904ea /bitbake
parent286da989d98455b7dea166713fe48c679afbd3d8 (diff)
downloadpoky-1fe445d0b5d345a7b0fc490441abcd50d260a682.tar.gz
bitbake: toaster: filtersnippet remove redefinition of filter type key
This redefinition is not needed and also used Mozilla specific API to access the data thus breaking the date filter in all other browsers. [YOCTO #7577] (Bitbake rev: b64bbc2dd51369b64fae2b1a10502b9dd4ceebfd) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-xbitbake/lib/toaster/toastergui/static/js/filtersnippet.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js b/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js
index 27b057e64e..2b84c546cd 100755
--- a/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js
+++ b/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js
@@ -80,8 +80,7 @@ function date_init (key, from_date, to_date, min_date, max_date, initial_enable)
80 $("form").unbind('submit'); 80 $("form").unbind('submit');
81 $("form").submit(function(e) { 81 $("form").submit(function(e) {
82 // format a composite daterange filter value so that it can be parsed and post-processed in the view 82 // format a composite daterange filter value so that it can be parsed and post-processed in the view
83 var key=e.originalEvent.explicitOriginalTarget.getAttribute("data-key") 83 if (key !== undefined) {
84 if (typeof key != "undefined") {
85 if ($("#date_from_"+key).length) { 84 if ($("#date_from_"+key).length) {
86 var filter=key+"__gte!"+key+"__lt:"+$("#date_from_"+key).val()+"!"+$("#date_to_"+key).val()+"_daterange"; 85 var filter=key+"__gte!"+key+"__lt:"+$("#date_from_"+key).val()+"!"+$("#date_to_"+key).val()+"_daterange";
87 $("#last_date_from_"+key).val($("#date_from_"+key).val()); 86 $("#last_date_from_"+key).val($("#date_from_"+key).val());