From 34e9b295d8ceaf726deb2fdd1e188bd1fa780226 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Mon, 28 Jan 2013 13:17:43 +0000 Subject: [PATCH] Fix handling of years older than current year. --- root/tt/subscriber_callforward_times.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/root/tt/subscriber_callforward_times.tt b/root/tt/subscriber_callforward_times.tt index bdc71f0..bde6124 100644 --- a/root/tt/subscriber_callforward_times.tt +++ b/root/tt/subscriber_callforward_times.tt @@ -282,6 +282,10 @@ // from-year if(dropped.attr("id") == "drag-elem-year" || dropped.attr("id") == "drag-elem-year-range") { + var y = d.getFullYear(); var py = parseInt(param); + if(y > py) { + $('').appendTo(from_select); + } for(var i = 0; i < years.length; ++i) { var y = d.getFullYear() + i; $('').appendTo(from_select);