From 5d1243ad4cabd5562418fc29a7026019d4baa6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Solard?= Date: Wed, 6 Aug 2014 18:40:29 +0200 Subject: [PATCH] Fix a bug which duplicated glyphicons on click on action buttons in webmail pages --- .../extensions/webmail/static/webmail/js/webmail.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modoboa/extensions/webmail/static/webmail/js/webmail.js b/modoboa/extensions/webmail/static/webmail/js/webmail.js index 3188a4aed..389773202 100644 --- a/modoboa/extensions/webmail/static/webmail/js/webmail.js +++ b/modoboa/extensions/webmail/static/webmail/js/webmail.js @@ -49,11 +49,6 @@ Webmail.prototype = { /* Responsive -> init */ - /*if ($( window ).width()<760){ - $("tr td[name='from']").css({ - width: 35 + '%' - }); - }*/ if ($( window ).width()<1198){ $("#leftcol").addClass( @@ -89,7 +84,7 @@ Webmail.prototype = { var that = this; $(window).resize(function(){ - if ($( window ).width()<760){ + if ($( window ).width()<770){ $("tr td[name='from']").css({ width: 35 + '%' }); @@ -343,7 +338,7 @@ Webmail.prototype = { var $link = $('a[href="' + mailbox + '"]'); var parts = mailbox.split(this.options.hdelimiter); var dname = " " + parts[parts.length - 1]; - var $i = $link.children("i"); + var $i = $link.children("i:visible"); this.unseen_counters[mailbox] = value; if (value) { @@ -688,6 +683,7 @@ Webmail.prototype = { }, send_mark_request: function(e) { + e.preventDefault(); if (!this.htmltable.current_selection().length) { return;