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

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: do less, be lazy Created 4 years, 2 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/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..e2d0b2549dd92ef2d2943d3f74b19ee7f06c240c 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -300,6 +300,15 @@ cr.define('md_history', function() {
return this.item.dateRelativeDay;
return HistoryItem.searchResultsTitle(numberOfItems, search);
},
+
+ /**
+ * @private
+ */
Dan Beam 2016/10/28 20:43:28 nit: /** @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