mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
37 lines
1.4 KiB
JavaScript
37 lines
1.4 KiB
JavaScript
$(function(){
|
|
$('.map-input').mapInput();
|
|
$('.imageupload').imageUpload();
|
|
$('.bookmarks').bookmarktable();
|
|
$('.wsjt-decoding-depths').wsjtDecodingDepthsInput();
|
|
$('#waterfall_scheme').waterfallDropdown();
|
|
$('#rf_gain').gainInput();
|
|
$('.optional-section').optionalSection();
|
|
$('#scheduler').schedulerInput();
|
|
$('.exponential-input').exponentialInput();
|
|
$('.device-log-messages').logMessages();
|
|
$('.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'
|
|
});
|
|
}
|
|
});
|
|
$('.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'
|
|
});
|
|
}
|
|
})
|
|
}); |