(function() { var timepicker_init; if (!$.fn.timepicker) { throw new Error('bootstrap-timepicker.js required'); } timepicker_init = $.fn.timepicker.Constructor.prototype._init; $.fn.timepicker.Constructor.prototype._init = function() { if (this.$element.parent().hasClass('input-group')) { this.$element.parent('.input-group').find('.input-group-addon').on('click.timepicker', $.proxy(this.showWidget, this)); this.$element.on({ 'focus.timepicker': $.proxy(this.highlightUnit, this), 'click.timepicker': $.proxy(this.highlightUnit, this), 'keydown.timepicker': $.proxy(this.elementKeydown, this), 'blur.timepicker': $.proxy(this.blurElement, this) }); } return timepicker_init.call(this); }; $.fn.timepicker.Constructor.prototype.getTemplate = function() { var hourTemplate, meridianTemplate, minuteTemplate, secondTemplate, template, templateContent; if (this.showInputs) { hourTemplate = ''; minuteTemplate = ''; secondTemplate = ''; meridianTemplate = ''; } else { hourTemplate = ''; minuteTemplate = ''; secondTemplate = ''; meridianTemplate = ''; } templateContent = '