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

Remove regional settings for timepicker

This commit is contained in:
Adam Zammit
2015-08-03 16:26:03 +10:00
parent af20331147
commit ca752d4036
2 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ $js_head = array(
"../include/timepicker/jquery-ui.min.js", "../include/timepicker/jquery-ui.min.js",
//"../include/jquery-ui/jquery-ui.min.js", //"../include/jquery-ui/jquery-ui.min.js",
"../include/timepicker/jquery-ui-timepicker-addon.js", "../include/timepicker/jquery-ui-timepicker-addon.js",
"../include/timepicker/jquery-ui-timepicker-ru.js", //"../include/timepicker/jquery-ui-timepicker-ru.js",
); );
$js_foot = array( $js_foot = array(
"../js/bootstrap-confirmation.js", "../js/bootstrap-confirmation.js",
@@ -103,7 +103,7 @@ if (isset($_GET['start']) && isset($_GET['end']) && isset($_GET['update']))
} }
if ( (isset($_GET['appointment_id']) && isset($_GET['case_id'])) ||(($_GET['new'] == 'new') && isset($_GET['case_id']))) if ( (isset($_GET['appointment_id']) && isset($_GET['case_id'])) ||(isset($_GET['new']) && isset($_GET['case_id'])))
{ {
$appointment_id = bigintval($_GET['appointment_id']); $appointment_id = bigintval($_GET['appointment_id']);
$case_id = bigintval($_GET['case_id']); $case_id = bigintval($_GET['case_id']);

View File

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