]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake: toaster: filtersnippet remove redefinition of filter type key
authorMichael Wood <michael.g.wood@intel.com>
Mon, 27 Apr 2015 14:05:18 +0000 (15:05 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 May 2015 16:42:06 +0000 (17:42 +0100)
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>
bitbake/lib/toaster/toastergui/static/js/filtersnippet.js

index 27b057e64e0e3a3bcbd893c5ab9e9f3437348103..2b84c546cdb6799a0dd8c6f8c0036ac6bcd345f5 100755 (executable)
@@ -80,8 +80,7 @@ function date_init (key, from_date, to_date, min_date, max_date, initial_enable)
     $("form").unbind('submit');
     $("form").submit(function(e) {
         // format a composite daterange filter value so that it can be parsed and post-processed in the view
-        var key=e.originalEvent.explicitOriginalTarget.getAttribute("data-key")
-        if (typeof key != "undefined") {
+        if (key !== undefined) {
             if ($("#date_from_"+key).length) {
                 var filter=key+"__gte!"+key+"__lt:"+$("#date_from_"+key).val()+"!"+$("#date_to_"+key).val()+"_daterange";
                 $("#last_date_from_"+key).val($("#date_from_"+key).val());