2020-03-29 21:40:29 +02:00
|
|
|
$(function(){
|
2021-02-15 20:19:43 +01:00
|
|
|
$('.map-input').mapInput();
|
|
|
|
|
$('.imageupload').imageUpload();
|
|
|
|
|
$('.bookmarks').bookmarktable();
|
|
|
|
|
$('.wsjt-decoding-depths').wsjtDecodingDepthsInput();
|
2021-02-16 18:35:18 +01:00
|
|
|
$('#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();
|
2021-02-24 17:12:23 +01:00
|
|
|
$('#scheduler').schedulerInput();
|
2021-02-27 23:14:41 +01:00
|
|
|
$('.exponential-input').exponentialInput();
|
2022-12-10 19:50:26 +01:00
|
|
|
$('.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'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
2020-03-29 21:40:29 +02:00
|
|
|
});
|