2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

make sure appointment picker works even when no shifts defined

This commit is contained in:
Adam Zammit
2015-08-04 11:15:03 +10:00
parent c097d61e42
commit 760144b929
2 changed files with 17 additions and 10 deletions

View File

@@ -28,7 +28,7 @@
*/
var Timepicker = function () {
this.regional = []; // Available regional settings, indexed by language code
this.regional['en'] = { // Default regional settings
this.regional[''] = { // Default regional settings
currentText: 'Now',
closeText: 'Done',
amNames: ['AM', 'A'],
@@ -104,7 +104,7 @@
defaultValue: null,
parse: 'strict'
};
$.extend(this._defaults, this.regional['en']);
$.extend(this._defaults, this.regional['']);
};
$.extend(Timepicker.prototype, {