Browse Source

Added debug option to the config. Also trying to catch old installs that are still using the old language model.

pull/127/head
Zach Wise 13 years ago
parent
commit
2239ba66f6
  1. 7
      source/js/Embed.js

7
source/js/Embed.js

@ -56,6 +56,7 @@
} }
}, },
embed_config = { embed_config = {
debug: false,
embed: true, embed: true,
width: '100%', width: '100%',
height: '650', height: '650',
@ -99,6 +100,11 @@
} }
} }
// Check for old installs still using the old method of language
if (embed_config.js.match("locale")) {
embed_config.lang = embed_config.js.split("locale/")[1].replace(".js", "");
embed_config.js = path.js + 'timeline-min.js?'+timeline_js_version;
}
/* PREPARE /* PREPARE
================================================== */ ================================================== */
timeline_config = embed_config; timeline_config = embed_config;
@ -270,6 +276,7 @@
} }
function buildTimeline() { function buildTimeline() {
VMM.debug = embed_config.debug;
timelinejs = new VMM.Timeline(); timelinejs = new VMM.Timeline();
timelinejs.init(embed_config.source); timelinejs.init(embed_config.source);
if (isCDN) { if (isCDN) {

Loading…
Cancel
Save