changing default timeFormat within datepair.js for instances where the plugin is called by default HTML classes

This commit is contained in:
Brian Talbot
2013-04-04 17:38:14 -04:00
parent cc6baf9dd4
commit ceb4c719f7

View File

@@ -24,7 +24,7 @@ $(function() {
$('.datepair input.time').each(function() {
var $this = $(this);
var opts = { 'showDuration': true, 'timeFormat': 'g:ia', 'scrollDefaultNow': true };
var opts = { 'showDuration': true, 'timeFormat': 'H:i', 'scrollDefaultNow': true };
if ($this.hasClass('start') || $this.hasClass('end')) {
opts.onSelect = doDatepair;