Skip to content

Commit

Permalink
Merge branch 'mikevalenza2-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka2 committed Aug 20, 2019
2 parents a5ecf4d + 35cc64c commit ac636ab
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions js/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,12 @@
this.$button.addClass(this.options.theme);
this.$calendar = $(calendar);
this.$calendar.addClass(this.options.theme);
this.$target.after(this.$button);
if (this.options.buttonLeft) {
this.$target.before(this.$button);
}
else {
this.$target.after(this.$button);
}

// be sure parent of the calendar is positionned to calculate the position of the calendar
if (this.$calendar.parent().css('position') === 'static') {
Expand Down Expand Up @@ -514,7 +519,8 @@
inline: false,
gainFocusOnConstruction: true,
min: null,
max: null
max: null,
buttonLeft: null
}

/**
Expand Down

0 comments on commit ac636ab

Please sign in to comment.