Fix small issue when quota object does not specify 'title'

pull/6654/head 1.4-rc1
Aleksander Machniak 6 years ago
parent 0c01dad398
commit e3e9573391

@ -8346,7 +8346,7 @@ function rcube_webmail()
this.set_quota = function(content) this.set_quota = function(content)
{ {
if (this.gui_objects.quotadisplay && content && content.type == 'text') 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.triggerEvent('setquota', content);
this.env.quota_content = content; this.env.quota_content = content;

@ -3012,7 +3012,8 @@ function rcube_elastic_ui()
} }
bar.find('.value').css('width', value + '%')[value >= 90 ? 'addClass' : 'removeClass']('warning'); 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) { if (p.table) {
element.css('cursor', 'pointer').data('popup-pos', 'top') element.css('cursor', 'pointer').data('popup-pos', 'top')

Loading…
Cancel
Save