From 347c0214388bae18616a9003adf84d7be509fa86 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 20 Mar 2016 16:06:02 +0545 Subject: 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. --- src/usr/local/www/system_gateways_edit.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/usr/local/www/system_gateways_edit.php') diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 336776a..92bce53 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -708,7 +708,7 @@ $btnadv = new Form_Button( 'fa-cog' ); -$btnadv->addClass('btn-info btn-sm'); +$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm'); $section->addInput(new Form_StaticText( null, @@ -911,8 +911,6 @@ events.push(function() { $('#btnadvopts').html(' ' + text); } - $('#btnadvopts').prop('type', 'button'); - $('#btnadvopts').click(function(event) { show_advopts(); }); -- cgit v1.1