Commit 12560805 authored by Ryan Herbert's avatar Ryan Herbert

app.js, main.js get tips from require of doc/tips.js

See #2775
parent 6b0abd40
......@@ -32,7 +32,7 @@ function loadAfterConf() {
// some files are loaded before the views)
require(["../view"], function() {
require(["../germline"],
require(["../germline", "../../../doc/tips.js"],
function() {
require(["../generic_axis"],
function() {
......
......@@ -93,11 +93,8 @@ try {
new VidjilAutoComplete(db.db_address + 'tag/auto_complete');
var tips;
$.getJSON(config.doc_address + '/tips.json', function(data) {
tips = new TipsOfTheDay(data, new TipDecorator(), config.tip_ids);
tips.display(document.getElementById('tip-container'));
});
var my_tips = new TipsOfTheDay(tips, new TipDecorator(), config.tip_ids);
my_tips.display(document.getElementById('tip-container'));
} catch(err) {
this.db.log_error(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