This allows us to mount dirtag/web.py to a non-root URL (e.g. with
Apache's mod_proxy).
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() {
<?xml version="1.0"?>
-<?xml-stylesheet href="/static/dirtag.css" type="text/css"?>
+<?xml-stylesheet href="static/dirtag.css" type="text/css"?>
<!-- Firefox doesn't load external DTDs for web-served XML,
https://developer.mozilla.org/en/XML_in_Mozilla#DTDs_and_Other_External_Entities
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
- <script type="application/javascript" src="/static/dirtag.js"/>
+ <script type="application/javascript" src="static/dirtag.js"/>
<groupbox id="new-tag">
<caption label="&new_tag.caption;"/>
<hbox>