Commit bb91a93b authored by c24b's avatar c24b

Option close current popover whan changing lang

parent e6a3b8fe
...@@ -15,7 +15,7 @@ help = {"#project":{ ...@@ -15,7 +15,7 @@ help = {"#project":{
"#corpus-btn":{ "#corpus-btn":{
"en": "en":
{ "title":"Adding a corpus", { "title":"Adding a corpus",
"content": "Click on the button and give a name to your projet", "content": "First, select a database",
}, },
"fr": "fr":
{ "title": "Ajouter un corpus", { "title": "Ajouter un corpus",
...@@ -69,7 +69,7 @@ help = {"#project":{ ...@@ -69,7 +69,7 @@ help = {"#project":{
'#docFilter':{ '#docFilter':{
"en":{ "en":{
"title":"Filter document", "title":"Filter document",
"content": "" "content": "Given the option you selected in the menu all the documents, favorites or duplicates will appear"
}, },
"fr": { "fr": {
"title": "Filtrer les documents", "title": "Filtrer les documents",
...@@ -180,6 +180,9 @@ lang = $("a#lang").data("lang") ...@@ -180,6 +180,9 @@ lang = $("a#lang").data("lang")
loadHelp(lang) loadHelp(lang)
//change lang //change lang
$("a.new_lang").on("click", function(){ $("a.new_lang").on("click", function(){
//close all popo
$('.popover').popover('hide');
new_lang = $(this).data("lang") new_lang = $(this).data("lang")
//new_lang.setAttr("data-lang", lang) //new_lang.setAttr("data-lang", lang)
loadHelp(new_lang); loadHelp(new_lang);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment