more fixes for relative paths

This commit is contained in:
Baris Soner Usakli
2013-07-11 15:50:19 -04:00
parent d3c5afd94c
commit de55a35684
4 changed files with 123 additions and 95 deletions

View File

@@ -179,8 +179,12 @@
function parse_template() {
if (!templates[tpl_url] || !template_data) return;
template_data['relative_path'] = RELATIVE_PATH || global.config.relative_path;
if(typeof global !== "undefined")
template_data['relative_path'] = global.config.relative_path;
else
template_data['relative_path'] = RELATIVE_PATH;
document.getElementById('content').innerHTML = templates[tpl_url].parse(template_data);
jQuery('#content [template-variable]').each(function(index, element) {