diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:53:53 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-11-25 04:53:53 +0000 |
commit | 6a39144960f568088c02e6db11d549dde547f83b (patch) | |
tree | 2df9055128db01632f09c9ebd0c500c35d6abf09 /usr/local/www | |
parent | 4c63ac51bf7560bd742eb912195d6848c597ffe5 (diff) | |
download | pfsense-6a39144960f568088c02e6db11d549dde547f83b.zip pfsense-6a39144960f568088c02e6db11d549dde547f83b.tar.gz |
Add onFailure Ajax method
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/interfaces.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index d969441..1596ff3 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -1432,6 +1432,7 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" { method: 'post', parameters: pars, + onFailure: report_failure, onComplete: save_callback }); } @@ -1453,6 +1454,9 @@ $types = array("none" => "None", "static" => "Static", "dhcp" => "DHCP", "pppoe" hide_add_gateway(); $('status').innerHTML = ''; addOption($('gateway'), name, name); + // Auto submit form? + //document.iform.submit(); + //$('status').innerHTML = '<img src="/themes/metallic/images/misc/loader.gif">'; } else { report_failure(); } |