From b8ef913dc40964073c149c969f2ab470efffddc8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bonfanti Date: Wed, 21 Oct 2015 18:26:44 +0200 Subject: [PATCH] hint correct --- app/src/ResourcePanel/ResourceCalendar.dir.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/ResourcePanel/ResourceCalendar.dir.js b/app/src/ResourcePanel/ResourceCalendar.dir.js index bc7d35cc..3b0121e7 100644 --- a/app/src/ResourcePanel/ResourceCalendar.dir.js +++ b/app/src/ResourcePanel/ResourceCalendar.dir.js @@ -65,10 +65,10 @@ angular.module('Pundit2.ResourcePanel') }; var isValidYear = function(input) { - if(input[0]=='-'){ - if(input.length!=1){ + if(input[0]==='-'){ + if(input.length!==1){ if(!isValidField(input.substring(1, input.length))) { - return false + return false; } } } @@ -120,7 +120,7 @@ angular.module('Pundit2.ResourcePanel') var normalizeYear = function(year) { year = typeof year !== 'string' ? year.toString() : year; - if(year[0]=='-'){ + if(year[0]==='-'){ var yearTemp=year.substring(1, year.length); while (yearTemp.length < 6) { yearTemp = '0' + yearTemp;