Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/utils.js

Issue 10803010: First-run page (Chrome-specific changes) (Closed)
Patch Set: Created May 27, 2013, 4:52 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -95,5 +95,12 @@
}
}
return selectedItem;
+ },
+
+ getDocLink: function(linkID)
+ {
+ var Prefs = require("prefs").Prefs;
+ var docLink = Prefs.documentation_link;
+ return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale);
}
};

Powered by Google App Engine
This is Rietveld