Browse Source

Show example for speedlimit in scheduler

pull/683/head
Safihre 9 years ago
parent
commit
e27f0c5053
  1. 14
      interfaces/Config/templates/config_scheduling.tmpl

14
interfaces/Config/templates/config_scheduling.tmpl

@ -109,12 +109,22 @@ else:
\$('#action').on('change', function() { \$('#action').on('change', function() {
// Set the action // Set the action
\$('#arguments').val((\$(this).find('option:selected').data('action'))) \$('#arguments').val((\$(this).find('option:selected').data('action')))
// Arguments
// Is it speedlimit?
if(\$(this).find('option:selected').val() == 'speedlimit') {
\$('#hidden_arguments').show()
\$('#hidden_arguments input').attr('placeholder', 'Bytes/s, "1M" = 1 MB/s, "500K" = 500 KB/s')
} else {
\$('#hidden_arguments').hide()
\$('#hidden_arguments input').attr('placeholder', '')
}
/* Arguments - since we only have speedlimit with arguments, disabled for now
if(\$(this).find('option:selected').data('noarg')) { if(\$(this).find('option:selected').data('noarg')) {
\$('#hidden_arguments').hide() \$('#hidden_arguments').hide()
} else { } else {
\$('#hidden_arguments').show() \$('#hidden_arguments').show()
} }*/
}) })
</script> </script>
<!--#include $webdir + "/_inc_footer_uc.tmpl"#--> <!--#include $webdir + "/_inc_footer_uc.tmpl"#-->

Loading…
Cancel
Save