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>
$("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());