Commit 0b674a83 authored by c24b's avatar c24b

HELP btn help.js

parent 8add078b
...@@ -146,6 +146,9 @@ help = {"#project":{ ...@@ -146,6 +146,9 @@ help = {"#project":{
"position":"after", "position":"after",
} }
}; };
//define lang
lang = $("a#lang").data("lang")
//change lang
$( ".help" ).each(function(i, el) { $( ".help" ).each(function(i, el) {
console.log("This", el); console.log("This", el);
...@@ -160,7 +163,6 @@ $( ".help" ).each(function(i, el) { ...@@ -160,7 +163,6 @@ $( ".help" ).each(function(i, el) {
} }
btn = id+"-help" btn = id+"-help"
info = help[div_id] info = help[div_id]
lang = $("a#lang").data("lang");
console.log(lang) console.log(lang)
console.log(info[lang]["content"]) console.log(info[lang]["content"])
help_btn = '<span class="glyphicon glyphicon-question-sign" tab-index=0 data-toggle="popover" data-placement="'+info[lang]["placement"]+'" title="'+info[lang]["title"]+'" data-content="'+info[lang]["content"]+'"></span>' help_btn = '<span class="glyphicon glyphicon-question-sign" tab-index=0 data-toggle="popover" data-placement="'+info[lang]["placement"]+'" title="'+info[lang]["title"]+'" data-content="'+info[lang]["content"]+'"></span>'
......
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