Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2019-02-28 17:14:53 +0300
committerAleksander Machniak <machniak@kolabsys.com>2019-02-28 17:14:53 +0300
commite3e95733913a9b97afce8807f7354478a1403721 (patch)
treeb1e95e38fe3a775adb9954fe948a08060ec914a9
parent0c01dad3989356081ceda9c55c34ee79325fe0c0 (diff)
Fix small issue when quota object does not specify 'title'1.4-rc1
-rw-r--r--program/js/app.js2
-rw-r--r--skins/elastic/ui.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index ae5cf6884..cab54dcd9 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -8346,7 +8346,7 @@ function rcube_webmail()
this.set_quota = function(content)
{
if (this.gui_objects.quotadisplay && content && content.type == 'text')
- $(this.gui_objects.quotadisplay).text((content.percent||0) + '%').attr('title', content.title);
+ $(this.gui_objects.quotadisplay).text((content.percent||0) + '%').attr('title', content.title || '');
this.triggerEvent('setquota', content);
this.env.quota_content = content;
diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js
index 0f9f33fe6..bf4719e75 100644
--- a/skins/elastic/ui.js
+++ b/skins/elastic/ui.js
@@ -3012,7 +3012,8 @@ function rcube_elastic_ui()
}
bar.find('.value').css('width', value + '%')[value >= 90 ? 'addClass' : 'removeClass']('warning');
- element.attr('title', element.find('.count').attr('title'));
+ // set title and reset tooltip's data (needed in case of empty title)
+ element.attr({'data-original-title': '', title: element.find('.count').attr('title')});
if (p.table) {
element.css('cursor', 'pointer').data('popup-pos', 'top')