diff options
Diffstat (limited to 'ncp-web/ncp.js')
-rw-r--r-- | ncp-web/ncp.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js index 132e0b17..1b2e4128 100644 --- a/ncp-web/ncp.js +++ b/ncp-web/ncp.js @@ -135,7 +135,7 @@ $(function() // request $.request('post', 'ncp-launcher.php', { action:'launch', - ref:selectedID , + ref : selectedID, config: $.toJSON(cfg), csrf_token: $( '#csrf-token' ).get( '.value' ) }).then( function success( result ) @@ -155,6 +155,9 @@ $(function() $('#config-button').set('@disabled',null); $('#loading-gif').hide(); confLock = false; + + if( ret.ref && ret.ref == 'nc-update' ); + window.location.reload( true ); }).error( errorMsg ); }); |