diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-17 00:43:40 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-17 00:43:40 -0500 |
commit | 32daed50957b9bc4e5a8f947af1229b4fb1818bf (patch) | |
tree | 179fc371f345ceae6d12d582b211259cacae67b7 /common/modules/template.jsm | |
parent | f17fb77bcbdf84d89d5ad74d132a23e7216bcd16 (diff) | |
download | pentadactyl-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.jsm | 5 |
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> }, |