start implementing scheduler input (daylight works)
This commit is contained in:
17
htdocs/lib/settings/SchedulerInput.js
Normal file
17
htdocs/lib/settings/SchedulerInput.js
Normal file
@ -0,0 +1,17 @@
|
||||
$.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());
|
||||
});
|
||||
}
|
@ -6,4 +6,5 @@ $(function(){
|
||||
$('#waterfall_scheme').waterfallDropdown();
|
||||
$('#rf_gain').gainInput();
|
||||
$('.optional-section').optionalSection();
|
||||
$('#scheduler').schedulerInput();
|
||||
});
|
Reference in New Issue
Block a user