Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: chrome/browser/resources/options2/chromeos/set_wallpaper_options.js

Issue 10850036: [cros] Add attribution (author & website) strings to stock user images. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options2/chromeos/set_wallpaper_options.js
diff --git a/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js b/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js
index 57ad71c2937e7f51da8e54e46fc5ace079249524..4f01abb6bb68f87c8261f5a5789a4965de56a081 100644
--- a/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js
+++ b/chrome/browser/resources/options2/chromeos/set_wallpaper_options.js
@@ -99,13 +99,14 @@ cr.define('options', function() {
setWallpaperAttribution_: function(url) {
for (var i = 0; i < this.wallpapers_.length; i++) {
if (this.wallpapers_[i].url == url) {
- $('author-name').textContent = this.wallpapers_[i].author;
- $('author-website').textContent = this.wallpapers_[i].website;
+ $('wallpaper-author-name').textContent = this.wallpapers_[i].author;
+ $('wallpaper-author-website').textContent =
+ this.wallpapers_[i].website;
return;
}
}
- $('author-name').textContent = '';
- $('author-website').textContent = '';
+ $('wallpaper-author-name').textContent = '';
+ $('wallpaper-author-website').textContent = '';
},
/**
@@ -190,7 +191,7 @@ cr.define('options', function() {
var wallpaperGrid = $('wallpaper-grid');
if ($('use-daily-wallpaper').checked) {
wallpaperGrid.disabled = true;
- $('attribution-label').hidden = false;
+ $('wallpaper-attribution-label').hidden = false;
chrome.send('selectDailyWallpaper');
wallpaperGrid.classList.add('grayout');
$('set-wallpaper-layout').hidden = true;
@@ -270,11 +271,11 @@ cr.define('options', function() {
set isCustom(isCustom) {
if (isCustom) {
// Clear attributions for custom wallpaper.
- $('attribution-label').hidden = true;
+ $('wallpaper-attribution-label').hidden = true;
// Enable the layout drop down box when custom wallpaper is selected.
$('set-wallpaper-layout').hidden = false;
} else {
- $('attribution-label').hidden = false;
+ $('wallpaper-attribution-label').hidden = false;
$('set-wallpaper-layout').hidden = true;
}
},

Powered by Google App Engine
This is Rietveld 408576698