From: W. Trevor King Date: Sun, 18 Jul 2010 19:06:32 +0000 (-0400) Subject: Use relative links into static/... rather than /static/... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5b5193e927045b7f73a57c4a147a4f11a5cafec8;p=dirtag.git 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). --- 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 @@ - +