Skip to content

Commit

Permalink
Allow the date input to have the class date
Browse files Browse the repository at this point in the history
  • Loading branch information
ansman committed Apr 9, 2012
1 parent 0d44b95 commit d5f5743
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/bootstrap-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
});
this.isInput = this.element.is('input');
this.component = this.element.is('.date') ? this.element.find('.add-on') : false;
if(this.component && this.component.length === 0)
this.component = false;

if (this.isInput) {
this.element.on({
Expand Down

0 comments on commit d5f5743

Please sign in to comment.