openwebrx/htdocs/settings.js

37 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

$(function(){
2021-02-15 20:19:43 +01:00
$('.map-input').mapInput();
$('.imageupload').imageUpload();
$('.bookmarks').bookmarktable();
$('.wsjt-decoding-depths').wsjtDecodingDepthsInput();
$('#waterfall_scheme').waterfallDropdown();
2021-02-19 21:07:13 +01:00
$('#rf_gain').gainInput();
2021-02-22 23:49:28 +01:00
$('.optional-section').optionalSection();
$('#scheduler').schedulerInput();
$('.exponential-input').exponentialInput();
$('.device-log-messages').logMessages();
2023-06-02 12:19:38 +02:00
$('.profile-tabs').draggableList({
dataType: 'application/x-profile',
itemSelector: '.profile',
idProperty: 'profile-id',
performMove: function(profileId, index) {
var url = $('.profile-tabs .device a').attr('href');
return $.ajax(url + '/moveprofile', {
data: JSON.stringify({profile_id: profileId, index: index}),
contentType: 'application/json',
method: 'POST'
});
}
});
2023-06-02 13:59:35 +02:00
$('.sdr-device-list').draggableList({
dataType: 'application/x-sdr-device',
itemSelector: '.sdr-device',
idProperty: 'device-id',
performMove: function(deviceId, index) {
return $.ajax(document.location.href + '/movedevice', {
data: JSON.stringify({device_id: deviceId, index: index}),
contentType: 'application/json',
method: 'POST'
});
}
})
});