Mercurial > moztree-vis
changeset 17:08af758510cf default tip
changed browse app from hg to mxr.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Sun, 13 Dec 2009 09:49:36 -0800 |
parents | 5209578ac8a7 |
children | |
files | moztree.js |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/moztree.js Sun Dec 13 09:46:57 2009 -0800 +++ b/moztree.js Sun Dec 13 09:49:36 2009 -0800 @@ -138,7 +138,8 @@ var App = { tree: null, lastHash: null, - HG_URL: "http://hg.mozilla.org/mozilla-central/", + //BROWSE_URL: "http://hg.mozilla.org/mozilla-central/file/tip/", + BROWSE_URL: "http://mxr.mozilla.org/mozilla-central/source/", onIdle: function onIdle() { if (window.location.hash != this.lastHash) this.updateTree(); @@ -177,8 +178,7 @@ function(event) { if (event.target.moztreePath) { if (event.shiftKey) { - window.open(self.HG_URL + 'file/tip/' + - event.target.moztreePath); + window.open(self.BROWSE_URL + event.target.moztreePath); } else { window.location.hash = "#" + event.target.moztreePath; self.updateTree();