diff options
Diffstat (limited to 'src/usr/local/www/firewall_schedule_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_schedule_edit.php | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/usr/local/www/firewall_schedule_edit.php b/src/usr/local/www/firewall_schedule_edit.php index 14f9d0c..1a9b4b1 100644 --- a/src/usr/local/www/firewall_schedule_edit.php +++ b/src/usr/local/www/firewall_schedule_edit.php @@ -471,14 +471,14 @@ $group->add(new Form_Button( 'Add Time', null, 'fa-plus' -))->addClass('btn-success btn-sm'); +))->setAttribute('type','button')->addClass('btn-success btn-sm'); $group->add(new Form_Button( 'btnclrsel', 'Clear selection', null, 'fa-undo' -))->addClass('btn-info btn-sm'); +))->setAttribute('type','button')->addClass('btn-info btn-sm'); $section->add($group); @@ -657,7 +657,7 @@ if ($getSchedule) { 'Delete', null, 'fa-trash' - ))->addClass('btn-xs btn-warning'); + ))->setAttribute('type','button')->addClass('btn-xs btn-warning'); $group->add(new Form_Input( 'schedule' . $counter, @@ -695,24 +695,16 @@ events.push(function() { update_month(); }); - // Make the ‘clear’ button a plain button, not a submit button - $('#btnclrsel').prop('type', 'button'); - $('#btnclrsel').click(function() { clearCalendar(); clearTime(); clearDescr(); }); - // Make the ‘Add time’ button a plain button, not a submit button - $('#btnaddtime').prop('type', 'button'); - $('#btnaddtime').click(function() { processEntries(); }); - $('[id^=Delete]').prop('type', 'button'); - $('[id^=Delete]').click(function(event) { fse_delete_row(event.target.id.slice(6)); }); |