From 22ac756b16cf7940e59398b554bf81ca7602aedc Mon Sep 17 00:00:00 2001 From: reliberate Date: Sat, 15 Aug 2015 10:41:34 -0600 Subject: [PATCH] Destinations: Hide Account Code field on Add/Edit of Outbound Destinations. --- app/destinations/destination_edit.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/destinations/destination_edit.php b/app/destinations/destination_edit.php index ce238e627d..b22127f6cf 100644 --- a/app/destinations/destination_edit.php +++ b/app/destinations/destination_edit.php @@ -557,6 +557,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " if (document.getElementById('tr_sell')) { document.getElementById('tr_sell').style.display = 'none'; }\n"; echo " if (document.getElementById('tr_buy')) { document.getElementById('tr_buy').style.display = 'none'; }\n"; echo " if (document.getElementById('tr_carrier')) { document.getElementById('tr_carrier').style.display = 'none'; }\n"; + echo " document.getElementById('tr_account_code').style.display = 'none';\n"; echo " document.getElementById('destination_context').value = '".$_SESSION['domain_name']."'"; echo " }\n"; echo " else if (dir == 'inbound') {\n"; @@ -568,6 +569,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { echo " if (document.getElementById('tr_sell')) { document.getElementById('tr_sell').style.display = ''; }\n"; echo " if (document.getElementById('tr_buy')) { document.getElementById('tr_buy').style.display = ''; }\n"; echo " if (document.getElementById('tr_carrier')) { document.getElementById('tr_carrier').style.display = ''; }\n"; + echo " document.getElementById('tr_account_code').style.display = '';\n"; echo " document.getElementById('destination_context').value = 'public'"; echo " }\n"; echo " "; @@ -796,7 +798,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "add") { $destination_accountcode = $_SESSION['domain_name']; } } - echo "\n"; + echo "\n"; echo "\n"; echo " ".$text['label-account_code']."\n"; echo "\n";