summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 18:47:51 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-05 18:47:51 +0000
commitcd0971d14b9e99bba6d726284f9519597a27f41c (patch)
tree59368434daa6a2ee9d0bc3a89d7110f3fe367976 /chrome/browser/resources
parentce292018a349f2fbe7c42adf41dfe4eea9cdfac5 (diff)
downloadchromium_src-cd0971d14b9e99bba6d726284f9519597a27f41c.zip
chromium_src-cd0971d14b9e99bba6d726284f9519597a27f41c.tar.gz
chromium_src-cd0971d14b9e99bba6d726284f9519597a27f41c.tar.bz2
Change "remove thumbnail" message to make it fit nicely above the thumbnails on the NTP.
BUG= 22820 TEST= remove thumbnails. notice that "undo" butterbar doesn't overlap anything or elide text uncomfortably. Review URL: http://codereview.chromium.org/361017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31113 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/new_new_tab.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/resources/new_new_tab.js b/chrome/browser/resources/new_new_tab.js
index cb7b44b..f0ef8d1 100644
--- a/chrome/browser/resources/new_new_tab.js
+++ b/chrome/browser/resources/new_new_tab.js
@@ -467,15 +467,9 @@ var mostVisited = {
});
// Now change the DOM.
- var textPattern = localStrings.getString('thumbnailremovednotification');
- var parts = textPattern.split('%s');
- var titleSpan = document.createElement('span');
- titleSpan.className = 'blacklist-title';
- titleSpan.textContent = oldItem.title;
+ var removeText = localStrings.getString('thumbnailremovednotification');
var notifySpan = document.querySelector('#notification > span');
- notifySpan.appendChild(document.createTextNode(parts[0]));
- notifySpan.appendChild(titleSpan);
- notifySpan.appendChild(document.createTextNode(parts[1]));
+ notifySpan.textContent = removeText;
});
},