timepicker: auto-add am/pm class when its set

This commit is contained in:
Felix Niklas 2015-09-15 17:44:36 +02:00
parent e758eba1dd
commit 8cbef184f3

View file

@ -49,7 +49,9 @@
var self = this;
if (this.$element.hasClass('time--12')) {
this.showMeridian = true
this.showMeridian = true;
} else if(this.showMeridian) {
this.$element.addClass('time--12');
}
if (this.showWidgetOnAddonClick && (this.$element.parent().hasClass('input-append') || this.$element.parent().hasClass('input-prepend'))) {