Skip to content

Instantly share code, notes, and snippets.

@alexspeller
Forked from panakh/timepicker.js
Created October 13, 2013 16:53
Show Gist options
  • Save alexspeller/6964451 to your computer and use it in GitHub Desktop.
Save alexspeller/6964451 to your computer and use it in GitHub Desktop.
{{view App.TimePickerView name='timepicker'}}
App.TimePickerView = Ember.View.extend({
templateName: 'timepicker',
didInsertElement: function() {
this.$('[name=' + this.get('name') + ']').timepicker({
minuteStep: 1,
showSeconds: true,
showMeridian: false
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment