Skip to content

Commit

Permalink
Update daterangepicker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
scamjayi committed Oct 12, 2015
1 parent 90948a8 commit ff43e5f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,13 @@
// after the maximum, don't display this range option at all.
if ((this.minDate && end.isBefore(this.minDate)) || (maxDate && start.isAfter(maxDate)))
continue;

//Support unicode chars in the range names.
var elem = document.createElement('textarea');
elem.innerHTML = range;
rangeHtml = elem.value;

this.ranges[range] = [start, end];
this.ranges[rangeHtml] = [start, end];
}

var list = '<ul>';
Expand Down Expand Up @@ -1474,4 +1479,4 @@
return this;
};

}));
}));

0 comments on commit ff43e5f

Please sign in to comment.