diff options
author | Phil Davis <phil.davis@inf.org> | 2016-03-20 16:06:02 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-03-20 16:06:02 +0545 |
commit | 347c0214388bae18616a9003adf84d7be509fa86 (patch) | |
tree | 7f9bd3f0093719a7a34eb2c63024345ba713abf9 /src/usr/local/www/system_groupmanager_addprivs.php | |
parent | 7cb01159934f0fa24c0c0050917cef1ad9bb9f2b (diff) | |
download | pfsense-347c0214388bae18616a9003adf84d7be509fa86.zip pfsense-347c0214388bae18616a9003adf84d7be509fa86.tar.gz |
Reengineer Form_Button setAttribute
As per what was done for https://github.com/pfsense/pfsense/pull/2765 -
do it to the rest of them.
Seems to work OK.
Diffstat (limited to 'src/usr/local/www/system_groupmanager_addprivs.php')
-rw-r--r-- | src/usr/local/www/system_groupmanager_addprivs.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/usr/local/www/system_groupmanager_addprivs.php b/src/usr/local/www/system_groupmanager_addprivs.php index d999cdf..5c58092 100644 --- a/src/usr/local/www/system_groupmanager_addprivs.php +++ b/src/usr/local/www/system_groupmanager_addprivs.php @@ -217,7 +217,7 @@ $btnfilter = new Form_Button( 'fa-filter' ); -$btnfilter->addClass('btn btn-info'); +$btnfilter->setAttribute('type','button')->addClass('btn btn-info'); $form->addGlobal($btnfilter); @@ -228,7 +228,7 @@ $btnclear = new Form_Button( 'fa-times' ); -$btnclear->addClass('btn btn-warning'); +$btnclear->setAttribute('type','button')->addClass('btn btn-warning'); $form->addGlobal($btnclear); $form->add($section); @@ -287,8 +287,6 @@ events.push(function() { }); }); - $('#btnfilter').prop('type', 'button'); - $('#btnfilter').click(function() { searchterm = $('#filtertxt').val().toLowerCase(); copyselect(true); @@ -301,8 +299,6 @@ events.push(function() { }); }); - $('#btnclear').prop('type', 'button'); - $('#btnclear').click(function() { // Copy all options from shadow to sysprivs copyselect(true) |