Skip to content

Commit

Permalink
ncp-web: reload ncp-web after nc-update
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 4, 2018
1 parent df9e09e commit e652777
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ncp-web/ncp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand All @@ -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 );
});

Expand Down

0 comments on commit e652777

Please sign in to comment.