From d2f9919a4d28f9e058a0505a8802cc02217e8aa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= Date: Fri, 1 Jun 2018 14:19:42 +0200 Subject: [PATCH] [Web] Fix sorting by 'in use' --- data/web/js/mailbox.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index 3bd75262..2956ccda 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -233,7 +233,10 @@ jQuery(function($){ }, }, {"name":"spam_aliases","filterable": false,"title":lang.spam_aliases,"breakpoints":"xs sm md"}, - {"name":"in_use","filterable": false,"type":"html","title":lang.in_use}, + {"name":"in_use","filterable": false,"type":"html","title":lang.in_use,"sortValue": function(value){ + return $(value).find(".progress-bar").attr('aria-valuenow'); + }, + }, {"name":"messages","filterable": false,"title":lang.msg_num,"breakpoints":"xs sm md"}, {"name":"active","filterable": false,"title":lang.active}, {"name":"action","filterable": false,"sortable": false,"style":{"text-align":"right","min-width":"250px"},"type":"html","title":lang.action,"breakpoints":"xs sm md"}