|
|
|
@ -4209,6 +4209,12 @@ function api_display_language_form($hide_if_no_choice = false) |
|
|
|
|
$html = ' |
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
<!-- |
|
|
|
|
$(document).ready(function() { |
|
|
|
|
$("#language_list").change(function() { |
|
|
|
|
jumpMenu("parent",this,0); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function jumpMenu(targ,selObj,restore){ // v3.0 |
|
|
|
|
eval(targ+".location=\'"+selObj.options[selObj.selectedIndex].value+"\'"); |
|
|
|
|
if (restore) selObj.selectedIndex=0; |
|
|
|
@ -4217,7 +4223,7 @@ function api_display_language_form($hide_if_no_choice = false) |
|
|
|
|
</script>'; |
|
|
|
|
$html .= '<form id="lang_form" name="lang_form" method="post" action="'.api_get_self().'">'; |
|
|
|
|
$html .= '<label style="display: none;" for="language_list">' . get_lang('Language') . '</label>'; |
|
|
|
|
$html .= '<select id="language_list" class="selectpicker show-tick form-control" name="language_list" onchange="javascript: jumpMenu(\'parent\',this,0);">'; |
|
|
|
|
$html .= '<select id="language_list" class="selectpicker show-tick form-control" name="language_list" >'; |
|
|
|
|
|
|
|
|
|
foreach ($original_languages as $key => $value) { |
|
|
|
|
if ($folder[$key] == $user_selected_language) { |
|
|
|
|