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

Unified Diff: html/static/js/firstRun.js

Issue 6025347820683264: Issue 1106 - Enable Acceptable Ads by default for new installs and updates from versions < 1.2 (Closed)
Patch Set: Discriminate first run page title for install/update Created Aug. 1, 2014, 3:08 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
« no previous file with comments | « no previous file | html/static/js/ieFirstRun.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: html/static/js/firstRun.js
===================================================================
--- a/html/static/js/firstRun.js
+++ b/html/static/js/firstRun.js
@@ -105,14 +105,14 @@
var mapping = {
"aa-title": "first-run-aa-title",
"aa-text": "first-run-aa-text",
- "title-main": "first-run-title-install",
+ "title-main": AdblockPlus.isUpdate() ? "first-run-title-update" : "first-run-title-install",
"share-text1": "first-run-share1",
"share-text2": "first-run-share2",
"share-donate": "first-run-share2-donate",
"share2-connection": "first-run-share2-or"
};
- document.title = AdblockPlus.getMessage("first-run", "first-run-title-install");
+ document.title = AdblockPlus.getMessage("first-run", mapping['title-main']);
for (var i in mapping)
{
var element = document.getElementById(i);
« no previous file with comments | « no previous file | html/static/js/ieFirstRun.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld