summaryrefslogtreecommitdiff
path: root/common/modules/template.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-17 00:43:40 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-17 00:43:40 -0500
commit32daed50957b9bc4e5a8f947af1229b4fb1818bf (patch)
tree179fc371f345ceae6d12d582b211259cacae67b7 /common/modules/template.jsm
parentf17fb77bcbdf84d89d5ad74d132a23e7216bcd16 (diff)
downloadpentadactyl-32daed50957b9bc4e5a8f947af1229b4fb1818bf.tar.gz
Add 'Copy File Path' MOW context menu item. Fix some bugs.
Diffstat (limited to 'common/modules/template.jsm')
-rw-r--r--common/modules/template.jsm5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/modules/template.jsm b/common/modules/template.jsm
index 53aaf216..e5ae693b 100644
--- a/common/modules/template.jsm
+++ b/common/modules/template.jsm
@@ -262,12 +262,13 @@ var Template = Module("Template", {
sourceLink: function (frame) {
let url = (frame.filename || "unknown").replace(/.* -> /, "");
+ let path = util.urlPath(url);
XML.ignoreWhitespace = false; XML.prettyPrinting = false;
return <a xmlns:dactyl={NS} dactyl:command="buffer.viewSource"
- href={url} line={frame.lineNumber}
+ href={url} path={path} line={frame.lineNumber}
highlight="URL">{
- util.urlPath(url) + ":" + frame.lineNumber
+ path + ":" + frame.lineNumber
}</a>
},