# HG changeset patch # User Atul Varma # Date 1260726576 28800 # Node ID 08af758510cfa1cc38e88621a4e9eca315983fe1 # Parent 5209578ac8a7b7992017ba6fd0cb7d2b2bbe2222 changed browse app from hg to mxr. diff -r 5209578ac8a7 -r 08af758510cf moztree.js --- 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();