Skip to content

Commit 31dec57

Browse files
Fixes issue trentrichardson#287
1 parent 8e43a08 commit 31dec57

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

index.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
h1,h2,h3{ margin: 10px 0; }
1717
h1{}
1818
h2{ color: #f66; }
19-
h3{ color: #7b94b2; }
19+
h3{ color: #6b84a2; }
2020
p{ margin: 10px 0; }
2121
a{ color: #7b94b2; }
2222
ul,ol{ margin: 10px 0 10px 40px; }
@@ -114,6 +114,9 @@ <h3>Requirements</h3>
114114
<li>Timepicker</li>
115115
</ol>
116116

117+
<h3>Highly Recommended</h3>
118+
<p><a href="http://trentrichardson.com" title="Subscribe to TrentRichardson.com via email">Subscribe to my blog via email</a>. I post an article for nearly every timepicker update, so you know when a new one is released.</p>
119+
117120
<h3>Version</h3>
118121
<p>Version 1.0.3</p>
119122

jquery-ui-timepicker-addon.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@
867867
* bind to sliders slidestop, and grid click.
868868
*/
869869
_onSelectHandler: function() {
870-
var onSelect = this._defaults.onSelect;
870+
var onSelect = this._defaults.onSelect || this.inst.settings.onSelect;
871871
var inputEl = this.$input ? this.$input[0] : null;
872872
if (onSelect && inputEl) {
873873
onSelect.apply(inputEl, [this.formattedDateTime, this]);

0 commit comments

Comments
 (0)