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:
Diffstat (limited to 'ncp-web/ncp.js')
-rw-r--r--ncp-web/ncp.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ncp-web/ncp.js b/ncp-web/ncp.js
index a643212f..8fdd5e0a 100644
--- a/ncp-web/ncp.js
+++ b/ncp-web/ncp.js
@@ -56,6 +56,8 @@ $(function()
// create configuration object
var cfg = {};
$( 'input' , '#config-box' ).each( function(item){
+ if( item.getAttribute('type') == 'checkbox' )
+ item.value = item.checked ? 'yes' : 'no';
cfg[item.name] = item.value;
} );