Commit a46393e9 authored by Mathieu Giraud's avatar Mathieu Giraud

js/conf.js.sample, js/main.js: config.available_tips

parent a33ec5ee
......@@ -50,6 +50,12 @@ var config = {
"segmenter_address" : "https://db.vidjil.org/vidjil/segmenter",
/****************
* Tips of the day
*/
"available_tips" : [ 'T01' ],
/****************
* Static alerts
*/
......
......@@ -93,7 +93,7 @@ try {
new VidjilAutoComplete(db.db_address + 'tag/auto_complete');
var my_tips = new TipsOfTheDay(tips, new TipDecorator(), config.tip_ids);
var my_tips = new TipsOfTheDay(tips, new TipDecorator(), config.available_tips);
my_tips.set_container(document.getElementById('tip-container'))
my_tips.display()
} catch(err) {
......
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