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

Unified Diff: chrome/browser/resources/history/history.js

Issue 12218058: History: Use images instead of unicode characters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 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 | « chrome/browser/resources/history/history.html ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 557f80b28d3ee6a15f3a8ce47daa35637c3e3cfb..fe78bca73d08437c07c5d7c409a88d5f3ad9b0f5 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -840,15 +840,15 @@ HistoryView.prototype.getGroupedVisitsDOM_ = function(
createElementWithClassName('div', 'site-domain-wrapper'));
var siteArrow = siteDomainWrapper.appendChild(
createElementWithClassName('div', 'site-domain-arrow collapse'));
- siteArrow.textContent = '►';
var siteDomain = siteDomainWrapper.appendChild(
createElementWithClassName('div', 'site-domain'));
+ var siteDomainLink = siteDomain.appendChild(
+ createElementWithClassName('button', 'link-button'));
+ siteDomainLink.addEventListener('click', function(e) { e.preventDefault(); });
+ siteDomainLink.textContent = domain;
var numberOfVisits = createElementWithClassName('span', 'number-visits');
numberOfVisits.textContent = loadTimeData.getStringF('numbervisits',
domainVisits.length);
- var domainElement = document.createElement('span');
- domainElement.textContent = domain;
- siteDomain.appendChild(domainElement);
siteDomain.appendChild(numberOfVisits);
siteResults.appendChild(siteDomainWrapper);
var resultsList = siteResults.appendChild(
« no previous file with comments | « chrome/browser/resources/history/history.html ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698