From e652777b9dc1dc6f81dc9dd144f230cf16edc683 Mon Sep 17 00:00:00 2001 From: nachoparker Date: Wed, 4 Apr 2018 14:50:18 +0200 Subject: [PATCH] ncp-web: reload ncp-web after nc-update --- ncp-web/ncp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js index 132e0b17a..1b2e41285 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 ); });