diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/docs/examples.html | 21 | ||||
-rw-r--r-- | src/i18n/jquery-ui-timepicker-el.js | 6 | ||||
-rw-r--r-- | src/i18n/jquery-ui-timepicker-sq.js | 22 | ||||
-rw-r--r-- | src/jquery-ui-timepicker-addon.js | 5 |
4 files changed, 28 insertions, 26 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html index 9364fba..fa112d1 100644 --- a/src/docs/examples.html +++ b/src/docs/examples.html @@ -101,27 +101,6 @@ $('#timezone_example_2').datetimepicker({ </pre> </div> - <!-- ============= example --> - <div class="example-container"> - <p>You may also use timezone string abbreviations for values. This should be used with caution. Computing accurate javascript Date objects may not be possible when trying to retrieve or set the date from timepicker (see setDate and getDate examples below). For simple input values however this should work.</p> - <div> - <input type="text" name="timezone_example_3" id="timezone_example_3" value="" /> - </div> -<pre> -$('#timezone_example_3').datetimepicker({ - timeFormat: 'HH:mm z', - timezone: 'MT', - timezoneList: [ - { value: 'ET', label: 'Eastern'}, - { value: 'CT', label: 'Central' }, - { value: 'MT', label: 'Mountain' }, - { value: 'PT', label: 'Pacific' } - ] -}); - -</pre> - </div> - <h3 id="slider_examples">Slider Modifications</h3> <!-- ============= example --> diff --git a/src/i18n/jquery-ui-timepicker-el.js b/src/i18n/jquery-ui-timepicker-el.js index 1fe9b0e..72aec6d 100644 --- a/src/i18n/jquery-ui-timepicker-el.js +++ b/src/i18n/jquery-ui-timepicker-el.js @@ -7,8 +7,8 @@ hourText: 'Ώρες', minuteText: 'Λεπτά', secondText: 'Δευτερόλεπτα', - millisecText: 'μιλιδευτερόλεπτο', - microsecText: 'Microseconds', + millisecText: 'Χιλιοστοδευτερόλεπτα', + microsecText: 'Μικροδευτερόλεπτα', timezoneText: 'Ζώνη ώρας', currentText: 'Τώρα', closeText: 'Κλείσιμο', @@ -19,4 +19,4 @@ isRTL: false }; $.timepicker.setDefaults($.timepicker.regional['el']); -})(jQuery); +})(jQuery);
\ No newline at end of file diff --git a/src/i18n/jquery-ui-timepicker-sq.js b/src/i18n/jquery-ui-timepicker-sq.js new file mode 100644 index 0000000..d93d88c --- /dev/null +++ b/src/i18n/jquery-ui-timepicker-sq.js @@ -0,0 +1,22 @@ +/* Albanian translation for the jQuery Timepicker Addon */ +/* Written by Olti Buzi */ +(function($) { + $.timepicker.regional['sq'] = { + timeOnlyTitle: 'Zgjidh orarin', + timeText: 'Orari', + hourText: 'Ora', + minuteText: 'Minuta', + secondText: 'Sekonda', + millisecText: 'Minisekonda', + microsecText: 'Mikrosekonda', + timezoneText: 'Zona kohore', + currentText: 'Tani', + closeText: 'Mbyll', + timeFormat: 'HH:mm', + timeSuffix: '', + amNames: ['m.', 'AM', 'A'], + pmNames: ['p.', 'PM', 'P'], + isRTL: false + }; + $.timepicker.setDefaults($.timepicker.regional['sq']); +})(jQuery);
\ No newline at end of file diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js index 79de1e3..d975aa1 100644 --- a/src/jquery-ui-timepicker-addon.js +++ b/src/jquery-ui-timepicker-addon.js @@ -2066,7 +2066,7 @@ } if (!/^(\-|\+)\d{4}$/.test(normalized)) { // possibly a user defined tz, so just give it back - return tzString; + return parseInt(tzString, 10); } return ((normalized.substr(0, 1) === '-' ? -1 : 1) * // plus or minus @@ -2229,7 +2229,8 @@ * @return {void} */ $.timepicker.log = function () { - if (window.console) { + // Older IE (9, maybe 10) throw error on accessing `window.console.log.apply`, so check first. + if (window.console && window.console.log && window.console.log.apply) { window.console.log.apply(window.console, Array.prototype.slice.call(arguments)); } }; |