diff options
author | ivan <ivan> | 2003-07-04 00:51:30 +0000 |
---|---|---|
committer | ivan <ivan> | 2003-07-04 00:51:30 +0000 |
commit | 6aaed38414526e6074fae5ad5aad030f184f300b (patch) | |
tree | 2171d1bf8ef1e1c76f2d3471fc25faaebfc1dd33 | |
parent | 18f9d0fda6c5feaa6713f6d79597906051ed527f (diff) |
optimize javascript to handle large numbers of POPs
-rw-r--r-- | FS/FS/svc_acct_pop.pm | 5 | ||||
-rwxr-xr-x | fs_signup/FS-SignupClient/cgi/signup.cgi | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/FS/FS/svc_acct_pop.pm b/FS/FS/svc_acct_pop.pm index 3c9ea0130..bb2d3fd0a 100644 --- a/FS/FS/svc_acct_pop.pm +++ b/FS/FS/svc_acct_pop.pm @@ -142,8 +142,7 @@ sub popselector { function popstate_changed(what) { state = what.options[what.selectedIndex].text; - for (var i = what.form.popnum.length;i > 0;i--) - what.form.popnum.options[i] = null; + what.form.popnum.options.length = 0 what.form.popnum.options[0] = new Option("", "", false, true); END @@ -182,7 +181,7 @@ END =head1 VERSION -$Id: svc_acct_pop.pm,v 1.7 2002-04-10 13:42:48 ivan Exp $ +$Id: svc_acct_pop.pm,v 1.7.4.1 2003-07-04 00:51:30 ivan Exp $ =head1 BUGS diff --git a/fs_signup/FS-SignupClient/cgi/signup.cgi b/fs_signup/FS-SignupClient/cgi/signup.cgi index d483435d3..c0d161640 100755 --- a/fs_signup/FS-SignupClient/cgi/signup.cgi +++ b/fs_signup/FS-SignupClient/cgi/signup.cgi @@ -1,6 +1,6 @@ #!/usr/bin/perl -Tw # -# $Id: signup.cgi,v 1.29.2.6 2003-06-24 15:34:41 ivan Exp $ +# $Id: signup.cgi,v 1.29.2.7 2003-07-04 00:51:30 ivan Exp $ use strict; use vars qw( @payby $cgi $locales $packages $pops $init_data $error @@ -397,8 +397,7 @@ sub popselector { function popstate_changed(what) { state = what.options[what.selectedIndex].text; - for (var i = what.form.popnum.length;i > 0;i--) - what.form.popnum.options[i] = null; + what.form.popnum.options.length = 0; what.form.popnum.options[0] = new Option("", "", false, true); END |