diff options
author | nacho <nacho@ownyourbits.com> | 2019-01-02 17:33:06 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-01-05 04:14:53 +0300 |
commit | 33ab3b36d04adfac7d6dfc1dbf7ea81a64e3a63e (patch) | |
tree | c805e9d8e14bb092fdc68c96f0a9d1ccd5f5f578 /ncp-web | |
parent | 74db3796ad4b19a17bd131952aada886e1402bbd (diff) |
fix retstatus red circle
Diffstat (limited to 'ncp-web')
-rw-r--r-- | ncp-web/elements.php | 2 | ||||
-rw-r--r-- | ncp-web/js/ncp.js | 9 |
2 files changed, 7 insertions, 4 deletions
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; <div class="config-button-wrapper"> <button id="$ncp_app-config-button" class="config-button">Apply</button> <img class="loading-gif" src="img/loading-small.gif"> - <div class="circle-retstatus" class="icon-red-circle"></div> + <div class="circle-retstatus icon-red-circle"></div> </div> </form> 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 ); }); |