summaryrefslogtreecommitdiffstats
path: root/dist/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorTrent Richardson <trentdrichardson@gmail.com>2014-03-05 08:06:43 -0500
committerTrent Richardson <trentdrichardson@gmail.com>2014-03-05 08:06:43 -0500
commiteedfe4be0ae5d9e8399b1de52e7b4a3fdb2b22ac (patch)
treee2b51dabba4efdb771e3d36ded28fff3a3f38da6 /dist/jquery-ui-timepicker-addon.js
parent7740c23bf1a8f60bb971bf67ce818d4543572ebb (diff)
downloadjQuery-Timepicker-Addon-eedfe4be0ae5d9e8399b1de52e7b4a3fdb2b22ac.zip
jQuery-Timepicker-Addon-eedfe4be0ae5d9e8399b1de52e7b4a3fdb2b22ac.tar.gz
jQuery-Timepicker-Addon-eedfe4be0ae5d9e8399b1de52e7b4a3fdb2b22ac.tar.bz2
#633 - add timeOnlyShowDate option to show the date but only allow timepicker
Diffstat (limited to 'dist/jquery-ui-timepicker-addon.js')
-rw-r--r--dist/jquery-ui-timepicker-addon.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/jquery-ui-timepicker-addon.js b/dist/jquery-ui-timepicker-addon.js
index d936c09..714d957 100644
--- a/dist/jquery-ui-timepicker-addon.js
+++ b/dist/jquery-ui-timepicker-addon.js
@@ -48,6 +48,7 @@
this._defaults = { // Global defaults for all the datetime picker instances
showButtonPanel: true,
timeOnly: false,
+ timeOnlyShowDate: false,
showHour: null,
showMinute: null,
showSecond: null,
@@ -897,9 +898,9 @@
// return;
//}
- if (this._defaults.timeOnly === true) {
+ if (this._defaults.timeOnly === true && this._defaults.timeOnlyShowDate === false) {
formattedDateTime = this.formattedTime;
- } else if (this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) {
+ } else if ((this._defaults.timeOnly !== true && (this._defaults.alwaysSetTime || timeAvailable)) || (this._defaults.timeOnly === true && this._defaults.timeOnlyShowDate === true)) {
formattedDateTime += this._defaults.separator + this.formattedTime + this._defaults.timeSuffix;
}