mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 07:44:35 +02:00
Fixed the ajax calls with timepicker in other languages instead english.
(cherry picked from commit 15c93c3bd9b7e80e1a44c50321be8ded612681e9) Conflicts: pandora_console/include/ajax/module.php
This commit is contained in:
parent
cd20ae0d2f
commit
c11a81dbef
@ -79,7 +79,7 @@ if ($get_module_detail) {
|
|||||||
|
|
||||||
if (defined ('METACONSOLE')) {
|
if (defined ('METACONSOLE')) {
|
||||||
$server = metaconsole_get_connection ($server_name);
|
$server = metaconsole_get_connection ($server_name);
|
||||||
|
|
||||||
if (metaconsole_connect($server) != NOERR)
|
if (metaconsole_connect($server) != NOERR)
|
||||||
return;
|
return;
|
||||||
$conexion = false;
|
$conexion = false;
|
||||||
@ -87,7 +87,7 @@ if ($get_module_detail) {
|
|||||||
else {
|
else {
|
||||||
$conexion = false;
|
$conexion = false;
|
||||||
}
|
}
|
||||||
html_debug_print($conexion, true);
|
|
||||||
$selection_mode = get_parameter('selection_mode', 'fromnow');
|
$selection_mode = get_parameter('selection_mode', 'fromnow');
|
||||||
$date_from = (string) get_parameter ('date_from', date ('Y-m-j'));
|
$date_from = (string) get_parameter ('date_from', date ('Y-m-j'));
|
||||||
$time_from = (string) get_parameter ('time_from', date ('h:iA'));
|
$time_from = (string) get_parameter ('time_from', date ('h:iA'));
|
||||||
|
@ -3575,10 +3575,18 @@ function ui_get_error ($error_code) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ui_include_time_picker() {
|
function ui_include_time_picker() {
|
||||||
ui_require_jquery_file ("ui-timepicker-addon");
|
if (is_ajax ()) {
|
||||||
|
echo '<script type="text/javascript" src="' .
|
||||||
|
ui_get_full_url(false, false, false, false) .
|
||||||
|
'include/javascript/jquery.ui-timepicker-addon.js' . '"></script>';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ui_require_jquery_file ("ui-timepicker-addon");
|
||||||
|
}
|
||||||
|
|
||||||
if (file_exists('include/javascript/i18n/jquery-ui-timepicker-' . substr(get_user_language(), 0, 2) . '.js')) {
|
if (file_exists('include/javascript/i18n/jquery-ui-timepicker-' . substr(get_user_language(), 0, 2) . '.js')) {
|
||||||
echo '<script type="text/javascript" src="' . ui_get_full_url('include/javascript/i18n/jquery-ui-timepicker-' . substr(get_user_language(), 0, 2) . '.js', false, false, false) . '"></script>';
|
echo '<script type="text/javascript" src="' .
|
||||||
|
ui_get_full_url('include/javascript/i18n/jquery-ui-timepicker-' . substr(get_user_language(), 0, 2) . '.js', false, false, false) . '"></script>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user