diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 005fc1363a..fb5a93fcc9 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -504,7 +504,7 @@ return array( 'rsrc/js/core/behavior-scrollbar.js' => '834a1173', 'rsrc/js/core/behavior-search-typeahead.js' => '06c32383', 'rsrc/js/core/behavior-select-on-click.js' => '4e3e79a6', - 'rsrc/js/core/behavior-time-typeahead.js' => 'f80d6bf0', + 'rsrc/js/core/behavior-time-typeahead.js' => '522431f7', 'rsrc/js/core/behavior-toggle-class.js' => '92b9ec77', 'rsrc/js/core/behavior-tokenizer.js' => 'b3a4b884', 'rsrc/js/core/behavior-tooltip.js' => '42fcb747', @@ -688,7 +688,7 @@ return array( 'javelin-behavior-slowvote-embed' => '887ad43f', 'javelin-behavior-stripe-payment-form' => '3f5d6dbf', 'javelin-behavior-test-payment-form' => 'fc91ab6c', - 'javelin-behavior-time-typeahead' => 'f80d6bf0', + 'javelin-behavior-time-typeahead' => '522431f7', 'javelin-behavior-toggle-class' => '92b9ec77', 'javelin-behavior-typeahead-browse' => '635de1ec', 'javelin-behavior-typeahead-search' => '93d0c9e3', @@ -1244,6 +1244,14 @@ return array( 'javelin-dom', 'javelin-reactor-dom', ), + '522431f7' => array( + 'javelin-behavior', + 'javelin-util', + 'javelin-dom', + 'javelin-stratcom', + 'javelin-vector', + 'javelin-typeahead-static-source', + ), 52291776 => array( 'javelin-install', 'javelin-dom', @@ -2110,14 +2118,6 @@ return array( 'javelin-typeahead-ondemand-source', 'javelin-util', ), - 'f80d6bf0' => array( - 'javelin-behavior', - 'javelin-util', - 'javelin-dom', - 'javelin-stratcom', - 'javelin-vector', - 'javelin-typeahead-static-source', - ), 'f829edb3' => array( 'javelin-view', 'javelin-install', diff --git a/webroot/rsrc/js/core/behavior-time-typeahead.js b/webroot/rsrc/js/core/behavior-time-typeahead.js index bbd5e08699..6bee5a14ef 100644 --- a/webroot/rsrc/js/core/behavior-time-typeahead.js +++ b/webroot/rsrc/js/core/behavior-time-typeahead.js @@ -136,7 +136,10 @@ JX.behavior('time-typeahead', function(config) { } end_minutes = end_time%60; - end_minutes = (end_minutes < 9) ? end_minutes : ('0' + end_minutes); + if (end_minutes < 9) { + end_minutes = '0' + end_minutes; + } + end_value = end_hours + ':' + end_minutes + ' ' + end_meridian; }