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

Unified Diff: lib/ui.js

Issue 9078049: First run page (Closed)
Patch Set: Created Dec. 28, 2012, 11:06 a.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
« chrome/content/ui/firstRun.xhtml ('K') | « defaults/prefs.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/ui.js
===================================================================
--- a/lib/ui.js
+++ b/lib/ui.js
@@ -627,10 +627,11 @@
* send the UI language to adblockplus.org so that the correct language
* version of the page can be selected.
*/
- loadDocLink: function(/**String*/ linkID, /**Window*/ window)
+ loadDocLink: function(/**String*/ linkID, /**String*/ anchorID, /**Window*/ window)
{
let {Prefs} = require("prefs");
- let link = Prefs.documentation_link.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale);
+ let anchor = anchorID && anchorID.length > 0 ? '#' + anchorID : '';
+ let link = Prefs.documentation_link.replace(/%LINK%/g, linkID).replace(/%ANCHOR%/g, anchor).replace(/%LANG%/g, Utils.appLocale);
this.loadInBrowser(link, window);
},
« chrome/content/ui/firstRun.xhtml ('K') | « defaults/prefs.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld