diff options
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 ); }); |