diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-04-04 15:50:18 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-04-04 16:56:02 +0300 |
commit | e652777b9dc1dc6f81dc9dd144f230cf16edc683 (patch) | |
tree | 56f7bf2acce24dff0faeb430df41b09b17b00af5 /ncp-web | |
parent | df9e09ef205007fdf7fe0714691ece74c08d07fb (diff) |
ncp-web: reload ncp-web after nc-updatev0.53.17
Diffstat (limited to 'ncp-web')
-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 ); }); |