Add DOM title attribute to status icons to provide tooltip descriptions.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 27 Feb 2009 18:49:47 +0000 (11:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 27 Feb 2009 18:50:06 +0000 (11:50 -0700)
imp/js/src/DimpBase.js
imp/lib/DIMP.php

index ac295b6..1379fd2 100644 (file)
@@ -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();
index 3c7607e..a6e2336 100644 (file)
@@ -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. */