From f81bcb161a0dc65f6b3d585de2a1a53fc1bac683 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 24 Apr 2017 13:13:23 +0200 Subject: [PATCH] Fix editing catch-all addresses, show primary domain of alias in alias domain --- data/web/js/mailbox.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index 4e6b303d..118cd1d0 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -219,13 +219,16 @@ $(document).ready(function() { }, success: function (data) { $.each(data, function (i, item) { - if (item.is_catch_all == 1) { - item.address = '
Catch-All
' + item.address; - } item.action = '
' + ' ' + lang.edit + '' + ' ' + lang.remove + '' + '
'; + if (item.is_catch_all == 1) { + item.address = '
Catch-All
' + item.address; + } + if (item.in_primary_domain !== "") { + item.domain = "↳ " + item.domain + " (" + item.in_primary_domain + ")"; + } }); $('#alias_table').footable({ "columns": [