diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-07-25 16:18:02 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-07-25 16:18:02 -0300 |
commit | 1c0e77d3c6f080d5a96ca0f29faee5de40680144 (patch) | |
tree | f6c636aee66de365c824229edde9e75b6e122c30 /config/openbgpd | |
parent | c63c459e6c0c8e68c6708749fe3ebadfb0325fbe (diff) | |
download | pfsense-packages-1c0e77d3c6f080d5a96ca0f29faee5de40680144.tar.gz pfsense-packages-1c0e77d3c6f080d5a96ca0f29faee5de40680144.tar.bz2 pfsense-packages-1c0e77d3c6f080d5a96ca0f29faee5de40680144.zip |
Simplify a bit this copy/pasted function
Diffstat (limited to 'config/openbgpd')
-rw-r--r-- | config/openbgpd/openbgpd_status.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/config/openbgpd/openbgpd_status.php b/config/openbgpd/openbgpd_status.php index c7987ec4..1eaee2ea 100644 --- a/config/openbgpd/openbgpd_status.php +++ b/config/openbgpd/openbgpd_status.php @@ -173,16 +173,8 @@ function execCmds() { function update_count_callback(transport) { // First line contain field id to be updated var responseTextArr = transport.responseText.split("\n"); - var result = ""; - var i; - - for (i = 1; i < responseTextArr.length; i++) { - result += responseTextArr[i]; - if (i < responseTextArr.length - 1) - result += "\n"; - } - document.getElementById(responseTextArr[0] + "_count").innerHTML = result; + document.getElementById(responseTextArr[0] + "_count").innerHTML = responseTextArr[1]; } function update_filter(cmd, header_size) { |