mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
N°2416 fix datepicker not opening anymore
This was brought by PR #40 integration in 06592d7d37
This commit is contained in:
@@ -238,7 +238,14 @@ EOF;
|
|||||||
|
|
||||||
// Time picker additional options
|
// Time picker additional options
|
||||||
$sUserLang = Dict::GetUserLanguage();
|
$sUserLang = Dict::GetUserLanguage();
|
||||||
$sTimePickerLang = json_encode(Dict::S('INTERNAL:JQuery-DatePicker:LangCode', $sUserLang));
|
$sUserLangShort = strtolower(
|
||||||
|
substr($sUserLang, 0, 2)
|
||||||
|
);
|
||||||
|
// PR #40 : we are picking correct values for specific cases in dict files
|
||||||
|
// some languages are using codes like zh-CN or pt-BR
|
||||||
|
$sTimePickerLang = json_encode(
|
||||||
|
Dict::S('INTERNAL:JQuery-DatePicker:LangCode', $sUserLangShort)
|
||||||
|
);
|
||||||
$aPickerOptions['showOn'] = '';
|
$aPickerOptions['showOn'] = '';
|
||||||
$aPickerOptions['buttonImage'] = null;
|
$aPickerOptions['buttonImage'] = null;
|
||||||
$aPickerOptions['timeFormat'] = $oTimeFormat->ToDatePicker();
|
$aPickerOptions['timeFormat'] = $oTimeFormat->ToDatePicker();
|
||||||
|
|||||||
Reference in New Issue
Block a user