Skip to content

Commit

Permalink
ISSUE#602 - Place css classes and label changes after updateView and …
Browse files Browse the repository at this point in the history
…updateCalendars in case there is a dependency on init.
  • Loading branch information
Alexander Fisher committed Mar 27, 2015
1 parent f43f7be commit e38f19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,9 @@

this.container.addClass('opens' + this.opens);

this.updateView();
this.updateCalendars();

//apply CSS classes and labels to buttons
var c = this.container;
$.each(this.buttonClasses, function (idx, val) {
Expand All @@ -437,9 +440,6 @@
this.container.find('.cancelBtn').addClass(this.cancelClass);
this.container.find('.applyBtn').html(this.locale.applyLabel);
this.container.find('.cancelBtn').html(this.locale.cancelLabel);

this.updateView();
this.updateCalendars();
},

setStartDate: function(startDate) {
Expand Down

0 comments on commit e38f19a

Please sign in to comment.