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

Unified Diff: chrome/browser/resources/md_history/history_item.js

Issue 2454303002: [MD History] Add full time hover text to dates in history items. (Closed)
Patch Set: fix nit Created 4 years, 1 month 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/md_history/history_item.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index e064ec6710efbb08bdb2ce0cd7a0d3f1e39c6ef5..f7a1df3dd59f76b341ae5e8c82ae3216c9472a92 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -300,6 +300,13 @@ cr.define('md_history', function() {
return this.item.dateRelativeDay;
return HistoryItem.searchResultsTitle(numberOfItems, search);
},
+
+ /** @private */
+ addTimeTitle_: function() {
+ var el = this.$['time-accessed'];
+ el.setAttribute('title', new Date(this.item.time).toString());
+ this.unlisten(el, 'mouseover', 'addTimeTitle_');
+ },
});
/**
« no previous file with comments | « chrome/browser/resources/md_history/history_item.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698