From 5b5193e927045b7f73a57c4a147a4f11a5cafec8 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 18 Jul 2010 15:06:32 -0400 Subject: [PATCH] Use relative links into static/... rather than /static/... This allows us to mount dirtag/web.py to a non-root URL (e.g. with Apache's mod_proxy). --- static/dirtag.js | 2 +- template/dirtag.xul | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/static/dirtag.js b/static/dirtag.js index 336c928..e1eb267 100644 --- a/static/dirtag.js +++ b/static/dirtag.js @@ -126,7 +126,7 @@ function set_selected_element(path, tags, id) { element.file_path = path; element.file_tags = tags; element.tree_id = id; - element.setAttribute('src', '/static/raw/'+path.join('/')); + element.setAttribute('src', 'static/raw/'+path.join('/')); } function raw_tree_select() { diff --git a/template/dirtag.xul b/template/dirtag.xul index 2e1ad9d..c37d139 100644 --- a/template/dirtag.xul +++ b/template/dirtag.xul @@ -1,5 +1,5 @@ - +