diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-04-24 00:07:20 -0700 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-04-24 00:07:20 -0700 |
commit | fc48da171336985cd63beccf0110051dfbe92a47 (patch) | |
tree | a86a7925256a6c0f9be812f8d93bf64f7edbd7f6 /src | |
parent | cef2555be50316dcb0f2e454fde115d7f074edbf (diff) | |
download | pfsense-fc48da171336985cd63beccf0110051dfbe92a47.zip pfsense-fc48da171336985cd63beccf0110051dfbe92a47.tar.gz |
Status / IPsec / Overview - Few_Fixes
1) If there is no IPsec status response display an info box wrapped in table tags to prevent horizontal scroll bar.
2) Correct colspan to match header columns.
3) Punctuation.
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/status_ipsec.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/usr/local/www/status_ipsec.php b/src/usr/local/www/status_ipsec.php index 4ca13d7..4968d31 100644 --- a/src/usr/local/www/status_ipsec.php +++ b/src/usr/local/www/status_ipsec.php @@ -520,8 +520,8 @@ display_top_tabs($tab_array); </thead> <tbody id="ipsec-body"> <tr> - <td colspan="9"> - <?=print_info_box(gettext("Collecting IPsec status information"), warning, "")?> + <td colspan="10"> + <?=print_info_box(gettext("Collecting IPsec status information."), warning, "")?> </td> </tr> </tbody> @@ -569,6 +569,11 @@ events.push(function() { // Deal with the results of the above ajax call ajaxRequest.done(function (response, textStatus, jqXHR) { + + if (!response) { + response = '<tr><td colspan="10"><?=print_info_box(gettext("No IPsec status information available."), warning, "")?></td></tr>'; + } + $('#ipsec-body').html(response); ajax_lock = false; |