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>2018-02-18 22:33:03 +0300
committernachoparker <nacho@ownyourbits.com>2018-02-18 22:33:15 +0300
commit7d03e84ff46e63af83489533cf5a00a79f5f013c (patch)
tree5f38ec0eb192d6a875ec6bf71e6f236150b4ffea
parentf1d41e38464697da8b7acd70e03a900061b477ba (diff)
ncp-web: disable event handler after poweroffv0.46.18
-rw-r--r--changelog.md10
-rw-r--r--ncp-web/ncp.js7
2 files changed, 11 insertions, 6 deletions
diff --git a/changelog.md b/changelog.md
index 4f602d60..151ebc51 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,11 +1,13 @@
-[v0.46.17](https://github.com/nextcloud/nextcloudpi/commit/fbe639a) (2018-02-10) Add dialog for shutdown.
+[v0.46.18](https://github.com/nextcloud/nextcloudpi/commit/a3b8829) (2018-02-18) ncp-web: disable event handler after poweroff
-[v0.46.16](https://github.com/nextcloud/nextcloudpi/commit/2d3fc6f) (2018-02-16) remove redundant configuration from unattended upgrades
+[v0.46.17](https://github.com/nextcloud/nextcloudpi/commit/91686f2) (2018-02-10) Add dialog for shutdown.
-[v0.46.15](https://github.com/nextcloud/nextcloudpi/commit/45c5608) (2018-02-16) lamp: enhance SSL security (chacha cypher), and OCSP stapling
+[v0.46.16](https://github.com/nextcloud/nextcloudpi/commit/4bdbf93) (2018-02-16) remove redundant configuration from unattended upgrades
-[v0.46.14](https://github.com/nextcloud/nextcloudpi/commit/90dc944) (2018-02-16) log all NCP actions to /var/log/ncp.log
+[v0.46.15](https://github.com/nextcloud/nextcloudpi/commit/e965c1a) (2018-02-16) lamp: enhance SSL security (chacha cypher), and OCSP stapling
+
+[v0.46.14](https://github.com/nextcloud/nextcloudpi/commit/ff33be9) (2018-02-16) log all NCP actions to /var/log/ncp.log
[v0.46.13](https://github.com/nextcloud/nextcloudpi/commit/19b0609) (2018-02-16) update: accept github branch as an argument to ncp-update to test development branch
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js
index 3937761a..327fcbd0 100644
--- a/ncp-web/ncp.js
+++ b/ncp-web/ncp.js
@@ -159,7 +159,7 @@ $(function()
} );
// Power-off button
- $( '#poweroff' ).on('click', function(e)
+ function poweroff_event_handler(e)
{
//e.preventBubble = true;
$('#overlay').show();
@@ -170,7 +170,8 @@ $(function()
$('#overlay').hide();
$('#overlay').off('click');
});
- });
+ }
+ $( '#poweroff' ).on('click', poweroff_event_handler );
$( '#poweroff-option_shutdown' ).on('click', function(e)
{
@@ -182,6 +183,7 @@ $(function()
function success( result )
{
$('#config-box-wrapper').hide();
+ $.off( poweroff_event_handler );
$('#config-box-title').fill( "Shutting down..." );
}).error( errorMsg );
} );
@@ -196,6 +198,7 @@ $(function()
function success( result )
{
$('#config-box-wrapper').hide();
+ $.off( poweroff_event_handler );
$('#config-box-title').fill( "Rebooting..." );
}).error( errorMsg );
} );