From e49d0389c00f9f79b2168e73f92c7ba72d184b04 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Mon, 1 Aug 2016 00:28:53 +0200 Subject: [PATCH] Update jquery.timeDurationPicker.js * single letter form for human readable values, e.g., 5Y 6M 4d 20h 15m 37s * new parameter that accepts a deault human readable value --- jquery.timeDurationPicker.js | 75 +++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 9 deletions(-) diff --git a/jquery.timeDurationPicker.js b/jquery.timeDurationPicker.js index 6359b7d..ca60cc8 100644 --- a/jquery.timeDurationPicker.js +++ b/jquery.timeDurationPicker.js @@ -1,5 +1,5 @@ /*! - * jQuery TimeDurationPicker Plugin v1.0.5 + * jQuery TimeDurationPicker Plugin v1.1.0 * * https://github.com/digaev/jQuery-timeDurationPicker * @@ -193,6 +193,9 @@ if (this.options.defaultValue) { this.setDuration(this.options.defaultValue); } + if (this.options.defaultHumanValue) { + this.setDurationHuman(this.options.defaultHumanValue); + } }, _createSelectWithOptions: function(min, max) { var select = $('