From 33ab3b36d04adfac7d6dfc1dbf7ea81a64e3a63e Mon Sep 17 00:00:00 2001 From: nacho Date: Wed, 2 Jan 2019 07:33:06 -0700 Subject: fix retstatus red circle --- ncp-web/elements.php | 2 +- ncp-web/js/ncp.js | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'ncp-web') diff --git a/ncp-web/elements.php b/ncp-web/elements.php index c018bc1e..f06c62b2 100644 --- a/ncp-web/elements.php +++ b/ncp-web/elements.php @@ -97,7 +97,7 @@ HTML;
-
+
HTML; diff --git a/ncp-web/js/ncp.js b/ncp-web/js/ncp.js index 22ad43b8..acff1dc4 100644 --- a/ncp-web/js/ncp.js +++ b/ncp-web/js/ncp.js @@ -234,17 +234,20 @@ $(function() if( ret.ref && ret.ref == 'nc-update' ) window.location.reload( true ); reload_sidebar(); - $('.circle-retstatus').set( '+icon-green-circle' ); + $('.circle-retstatus').set('+icon-green-circle'); } else - $('.circle-retstatus').set( '-icon-green-circle' ); - $('.circle-retstatus').show(); + $('.circle-retstatus').set('-icon-green-circle'); } else // print error from server instead + { $('.details-box').fill(ret.output); + $('.circle-retstatus').set('-icon-green-circle'); + } $( 'input' , '#config-box-wrapper' ).set('@disabled', null); $('.config-button').set('@disabled',null); $('.loading-gif').hide(); + $('.circle-retstatus').show(); lock = false; }).error( errorMsg ); }); -- cgit v1.2.3