From 8ea3d74c8c2f058bd4cdb8373d839b8ea71e3ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Fri, 14 Jun 2019 10:08:36 +0200 Subject: [PATCH] timestamps as title and not replacing text --- plugins/AdminerReadableDates.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/plugins/AdminerReadableDates.php b/plugins/AdminerReadableDates.php index 03b0720..45228ee 100644 --- a/plugins/AdminerReadableDates.php +++ b/plugins/AdminerReadableDates.php @@ -16,7 +16,6 @@ class AdminerReadableDates function __construct() { $this->prepend = <<'; - tds[i].innerHTML = tds[i].newDate; - tds[i].dateIsNew = true; - - tds[i].addEventListener('click', function(event) { - this.innerHTML = (this.dateIsNew ? this.oldDate : this.newDate); - this.dateIsNew = !this.dateIsNew; - }); + tds[i].title = date.toLocaleString(); } } }); - EOT; }