[Toaster] [review-request][PATCH v2] bitbake: toaster: filtersnippet remove redefinition of filter type key
Damian, Alexandru
alexandru.damian at intel.com
Fri May 1 09:37:52 PDT 2015
Taken for submission,
Thank you,
Alex
On Mon, Apr 27, 2015 at 3:05 PM, Michael Wood <michael.g.wood at intel.com>
wrote:
> 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]
>
> Signed-off-by: Michael Wood <michael.g.wood at intel.com>
> ---
> bitbake/lib/toaster/toastergui/static/js/filtersnippet.js | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js
> b/bitbake/lib/toaster/toastergui/static/js/filtersnippet.js
> index 27b057e..2b84c54 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)
> $("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());
> --
> 2.1.0
>
> --
> _______________________________________________
> toaster mailing list
> toaster at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Alex Damian
Yocto Project
SSG / OTC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20150501/7baf8ec3/attachment.html>
More information about the toaster
mailing list