Revision 23f4c08f
Added by Stephen Beaver over 9 years ago
src/etc/inc/shaper.inc | ||
---|---|---|
3887 | 3887 |
$mask = $this->GetMask(); |
3888 | 3888 |
|
3889 | 3889 |
$section->addInput(new Form_Select( |
3890 |
'scheduler',
|
|
3890 |
'mask',
|
|
3891 | 3891 |
'Mask', |
3892 | 3892 |
$mask['type'], |
3893 | 3893 |
array('none' => 'None', 'srcaddress' => 'Source addresses', 'dstaddress' => 'Destination addresses') |
src/usr/local/www/firewall_shaper_vinterface.php | ||
---|---|---|
478 | 478 |
} |
479 | 479 |
|
480 | 480 |
function change_masks() { |
481 |
disableInput('maskbits', ($('#scheduler').val() == 'none'));
|
|
482 |
disableInput('maskbitsv6', ($('#scheduler').val() == 'none'));
|
|
481 |
disableInput('maskbits', ($('#mask').val() == 'none'));
|
|
482 |
disableInput('maskbitsv6', ($('#mask').val() == 'none'));
|
|
483 | 483 |
} |
484 | 484 |
|
485 | 485 |
// ---------- On initial page load ------------------------------------------------------------ |
... | ... | |
488 | 488 |
|
489 | 489 |
// ---------- Click checkbox handlers --------------------------------------------------------- |
490 | 490 |
|
491 |
$('#scheduler').on('change', function() {
|
|
491 |
$('#mask').on('change', function() {
|
|
492 | 492 |
change_masks(); |
493 | 493 |
}); |
494 | 494 |
}); |
Also available in: Unified diff
Fixes issue where limiter mask does not save (from forum)