Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-09-10 18:42:08 +0300
committernachoparker <nacho@ownyourbits.com>2017-09-10 18:42:08 +0300
commitcdad339d13f71da4a043942c098add188f33f8f7 (patch)
tree89a765795815e57f6d36db5088b147bbb3c28833
parent60711f3ca6f9eb139f78cbde40a94575d9cceeac (diff)
ncp-web: minor tweaksv0.26.26
-rw-r--r--ncp-web/ncp.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js
index 11df76a8..1597a67e 100644
--- a/ncp-web/ncp.js
+++ b/ncp-web/ncp.js
@@ -53,6 +53,9 @@ $(function()
// Show selected option configuration box
$( 'li' , '#app-navigation' ).on('click', function(e)
{
+ if ( selectedID == this.get( '.id' ) ) // already selected
+ return;
+
if ( confLock ) return;
confLock = true;
@@ -96,6 +99,8 @@ $(function()
$('#details-box').show();
$('#circle-retstatus').hide();
+ $( 'input' , '#config-box-wrapper' ).set('@disabled',true);
+
// request
$.request('post', 'ncp-launcher.php', { action:'launch',
ref:selectedID ,
@@ -114,6 +119,7 @@ $(function()
}
else // print error from server instead
$('#details-box').fill(ret.output);
+ $( 'input' , '#config-box-wrapper' ).set('@disabled', null);
$('#config-button').set('@disabled',null);
$('#loading-gif').hide();
confLock = false;
@@ -155,9 +161,16 @@ $(function()
csrf_token: $( '#csrf-token' ).get( '.value' ) }).then(
function success( result )
{
+ $('#config-box-wrapper').hide();
$('#config-box-title').fill( "Shutting down..." );
}).error( errorMsg );
} );
+
+ // close notification icon
+ $( '.icon-close' ).on('click', function(e)
+ {
+ $( '#notification' ).hide();
+ } );
});
// License