mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
fix request ids
This commit is contained in:
parent
33ab3b36d0
commit
c0fc0b9b4c
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user