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:
authornacho <nacho@ownyourbits.com>2019-01-02 17:33:35 +0300
committernachoparker <nacho@ownyourbits.com>2019-01-05 04:14:53 +0300
commitc0fc0b9b4c3757c6856d870a1bcbf3768c09d4d4 (patch)
tree985d00880c6227b9d2db73154ecceabeabb25cfb /ncp-web
parent33ab3b36d04adfac7d6dfc1dbf7ea81a64e3a63e (diff)
fix request ids
Diffstat (limited to 'ncp-web')
-rw-r--r--ncp-web/js/ncp.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/ncp-web/js/ncp.js b/ncp-web/js/ncp.js
index acff1dc4..84a6b2a3 100644
--- a/ncp-web/js/ncp.js
+++ b/ncp-web/js/ncp.js
@@ -179,7 +179,7 @@ $(function()
set_sidebar_click_handlers();
- // Launch selected script
+ // Launch selected ncp_app
$( '.config-button' ).on('click', function(e)
{
lock = true;
@@ -193,21 +193,10 @@ $(function()
if( item.getAttribute('type') == 'checkbox' )
item.value = item.checked ? 'yes' : 'no';
- cfg[item.name] = item.value;
+ var shortID = item.id.replace(selectedID + '-', '');
+ cfg[shortID] = item.value;
} );
- $( 'select', '#config-box' ).each( function(item) {
- var select = {
- 'id': item.name,
- 'value': []
- };
- $("#" + item.id + '>option').each(function(option) {
- select.value.push(option.selected ? "_" + option.value + "_" : "" + option.value);
- });
- cfg[select.id] = select.value;
- });
-
-
// reset box
$('.details-box').fill();
$('.details-box').show();