Skip to content

Commit

Permalink
Fixes critical defect #279
Browse files Browse the repository at this point in the history
I changed a test to use differently-ordered bootstrap classes. Tests
failed before the fix, and everything passes with the fix. Good.
  • Loading branch information
mastodonfarm committed Aug 6, 2015
1 parent 5370807 commit 33d9d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/bootstrap-timepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
_init: function() {
var self = this;

if (this.showWidgetOnAddonClick && (this.$element.parent().hasClass('input-group bootstrap-timepicker'))) {
if (this.showWidgetOnAddonClick && (this.$element.parent().hasClass('input-group') && this.$element.parent().hasClass('bootstrap-timepicker'))) {
this.$element.parent('.input-group.bootstrap-timepicker').find('.input-group-addon').on({
'click.timepicker': $.proxy(this.showWidget, this)
});
Expand Down
2 changes: 1 addition & 1 deletion spec/js/fixtures/timepicker.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="input-group bootstrap-timepicker">
<div class="bootstrap-timepicker input-group">
<input id="timepicker1" type="text" class="form-control input-small">
<span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>
</div>
Expand Down

0 comments on commit 33d9d2c

Please sign in to comment.