Do not use translated content.

fix #598
This commit is contained in:
Antoine Nguyen
2014-08-24 13:48:04 +02:00
parent c85b6040f2
commit 2bbc464c36
@@ -138,9 +138,16 @@ Quarantine.prototype = {
* Filter listing by message type (spam, virus, etc.)
*/
filter_by_type: function(evt) {
var msgtype = $(evt.target).html().trim();
var $target = $(evt.target);
var msgtype;
if (msgtype != 'All') {
if ($target.is("span")) {
msgtype = $target.html().trim();
} else {
msgtype = $target.attr("name").replace("msgtype_", "");
}
if (msgtype != 'all') {
this.navobj.setparam('msgtype', msgtype);
} else {
this.navobj.delparam('msgtype');