From d4a8642d5a8308a95993288bc4f41235f9bdb96c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 17 Nov 2019 12:07:55 +0100 Subject: [PATCH] Code simplification and style fixes --- program/js/app.js | 67 ++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 38 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 36d14c1fb..45db3bf89 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3077,7 +3077,7 @@ function rcube_webmail() css_class += ' status'; } - $(row.icon).attr('class', css_class).attr('title', label); + $(row.icon).attr({'class': css_class, title: label}); } if (row.msgicon && row.msgicon != row.icon) { @@ -3095,15 +3095,14 @@ function rcube_webmail() label += this.get_label('forwarded') + ' '; } - $(row.msgicon).attr('class', css_class).attr('title', label); + $(row.msgicon).attr({'class': css_class, title: label}); } if (row.flagicon) { css_class = (row.flagged ? 'flagged' : 'unflagged'); label = this.get_label(css_class); $(row.flagicon).attr('class', css_class) - .attr('aria-label', label) - .attr('title', label); + .attr({'aria-label': label, title: label}); } }; @@ -4078,9 +4077,7 @@ function rcube_webmail() li.append($('