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/pkg_edit.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/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index 785f1ea..651f115 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -1518,7 +1518,7 @@ if (!empty($advanced)) { 'Show Advanced Options', null, 'fa-cog' - ))->addClass('btn-info'); + ))->setAttribute('type','button')->addClass('btn-info'); $form->add($advanced); } @@ -1548,8 +1548,6 @@ if ($pkg['fields']['field'] != "") { ?> checkLastRow(); // Show advanced section if you click the showadv button - $('#showadv').prop('type', 'button'); - $("#showadv").click(function() { advanced_visible = !advanced_visible; |