From a4cda7c0a72b70cce21f04995eeb9900f6141273 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 27 Feb 2009 11:49:47 -0700 Subject: [PATCH] Add DOM title attribute to status icons to provide tooltip descriptions. --- imp/js/src/DimpBase.js | 2 +- imp/lib/DIMP.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/imp/js/src/DimpBase.js b/imp/js/src/DimpBase.js index ac295b6aa..1379fd20b 100644 --- a/imp/js/src/DimpBase.js +++ b/imp/js/src/DimpBase.js @@ -2205,7 +2205,7 @@ var DimpBase = { var d = s.down('.' + tmp); if (r.hasClassName(c.key)) { if (!d) { - s.insert($(elt.cloneNode(false)).addClassName(tmp)); + s.insert($(elt.cloneNode(false)).writeAttribute({ className: tmp, title: DIMP.text[tmp] || null })); } } else if (d) { d.remove(); diff --git a/imp/lib/DIMP.php b/imp/lib/DIMP.php index 3c7607e93..a6e23365e 100644 --- a/imp/lib/DIMP.php +++ b/imp/lib/DIMP.php @@ -223,6 +223,10 @@ class DIMP 'alog_message' => _("Message"), 'alog_success' => _("Success"), 'alog_warning' => _("Warning"), + 'statusAnswered' => _("Replied"), + 'statusForwarded' => _("Forwarded"), + 'statusUnseen' => _("Unseen"), + 'statusFlagged' => _("Flagged"), )); /* Gettext strings with individual escaping. */ -- 2.11.0