[10.0.25.dev] Modification du traiatement de changement de langue

dans la barre de membre
This commit is contained in:
Fred 2019-10-07 13:22:53 +02:00 committed by GitHub
parent 758313376d
commit 7a90458a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -249,6 +249,15 @@ core.start = function() {
if(pageUrl) {
$(location).attr("href", pageUrl);
}
});
/**
* Choix de la langue dans la barre de membre
*/
$("#barSelectLanguage").on("change", function(){
var i18nLang = $(this).val();
if(i18nLang) {
$("#barFormSelectLanguage").submit();
}
});
/**
* Champs d'upload de fichiers
@ -376,14 +385,3 @@ $(document).ready(function(){
$("#navfixedconnected .navLevel2").css({ 'pointer-events' : 'none' });
});
});
/**
* Traitement du changement de langue
*/
$(document).ready(function(){
$("#barSelectLanguage").click(function(){
$("#barFormSelectLanguage").submit();
});
});