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

Unified Diff: chrome/browser/resources/new_tab.html

Issue 115787: Hides the "Remove thumbnails" link when the most visited intro is shown.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/new_tab.html
===================================================================
--- chrome/browser/resources/new_tab.html (revision 16871)
+++ chrome/browser/resources/new_tab.html (working copy)
@@ -415,15 +415,16 @@
</div>
<a href="#"
class="manage non-edit-visible"
- onClick="enterEditMode(); return false">
+ onclick="enterEditMode(); return false"
+ id="editthumbnails">
<span jscontent="editthumbnails"></span></a>
- <button type="button" class="edit-visible" onClick="exitEditMode();"
+ <button type="button" class="edit-visible" onclick="exitEditMode();"
jscontent="doneediting"></button>
- <button type="button" class="edit-visible" onClick="cancelEdits();"
+ <button type="button" class="edit-visible" onclick="cancelEdits();"
jscontent="cancelediting"></button>
<a href="#"
class="manage edit-visible"
- onClick="restoreThumbnails(); return false">
+ onclick="restoreThumbnails(); return false">
<span jscontent="restorethumbnails"></span></a>
<a href="#"
jsvalues="href:showhistoryurl"
@@ -592,11 +593,12 @@
// Show the most visited helptext if most visited is still useless. This is
// a crappy heuristic.
if (pages.length < 3) {
- document.getElementById("mostvisitedintro").style.display = "block";
+ $('mostvisitedintro').style.display = 'block';
+ $('editthumbnails').style.display = 'none';
return;
}
- document.getElementById('mostvisitedintro').style.display = 'none';
+ $('mostvisitedintro').style.display = 'none';
// Create the items and add them to rows.
var rows = [];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698