mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
17 lines
468 B
JavaScript
17 lines
468 B
JavaScript
|
|
$.fn.schedulerInput = function() {
|
||
|
|
this.each(function() {
|
||
|
|
var $container = $(this);
|
||
|
|
|
||
|
|
var update = function(value){
|
||
|
|
$container.find('.option').hide();
|
||
|
|
$container.find('.option.' + value).show();
|
||
|
|
}
|
||
|
|
|
||
|
|
var $select = $container.find('select.mode');
|
||
|
|
$select.on('change', function(e) {
|
||
|
|
var value = $(e.target).val();
|
||
|
|
update(value);
|
||
|
|
});
|
||
|
|
update($select.val());
|
||
|
|
});
|
||
|
|
}
|