Skip to content

Commit

Permalink
hint correct
Browse files Browse the repository at this point in the history
  • Loading branch information
peppedeka committed Oct 21, 2015
1 parent 36c6bf8 commit b8ef913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/src/ResourcePanel/ResourceCalendar.dir.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b8ef913

Please sign in to comment.