projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d3eefd3
)
optimize javascript to handle large numbers of POPs
author
ivan
<ivan>
Fri, 4 Jul 2003 00:51:29 +0000
(
00:51
+0000)
committer
ivan
<ivan>
Fri, 4 Jul 2003 00:51:29 +0000
(
00:51
+0000)
FS/FS/svc_acct_pop.pm
patch
|
blob
|
history
fs_signup/FS-SignupClient/cgi/signup.cgi
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct_pop.pm
b/FS/FS/svc_acct_pop.pm
index
3c9ea01
..
404816b
100644
(file)
--- 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;
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
what.form.popnum.options[0] = new Option("", "", false, true);
END
@@
-182,7
+181,7
@@
END
=head1 VERSION
=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.
8 2003-07-04 00:51:29
ivan Exp $
=head1 BUGS
=head1 BUGS
diff --git
a/fs_signup/FS-SignupClient/cgi/signup.cgi
b/fs_signup/FS-SignupClient/cgi/signup.cgi
index
de142a1
..
09bdd43
100755
(executable)
--- a/
fs_signup/FS-SignupClient/cgi/signup.cgi
+++ b/
fs_signup/FS-SignupClient/cgi/signup.cgi
@@
-1,6
+1,6
@@
#!/usr/bin/perl -Tw
#
#!/usr/bin/perl -Tw
#
-# $Id: signup.cgi,v 1.3
7 2003-06-24 15:34:45
ivan Exp $
+# $Id: signup.cgi,v 1.3
8 2003-07-04 00:51:29
ivan Exp $
use strict;
use vars qw( @payby $cgi $locales $packages $pops $init_data $error
use strict;
use vars qw( @payby $cgi $locales $packages $pops $init_data $error
@@
-401,8
+401,7
@@
sub popselector {
function acstate_changed(what) {
state = what.options[what.selectedIndex].text;
function acstate_changed(what) {
state = what.options[what.selectedIndex].text;
- for (var i = what.form.popac.length;i > 0;i--)
- what.form.popac.options[i] = null;
+ what.form.popac.options.length = 0
what.form.popac.options[0] = new Option("Area code", "-1", false, true);
END
what.form.popac.options[0] = new Option("Area code", "-1", false, true);
END
@@
-422,8
+421,7
@@
END
$text .= <<END;
function popac_changed(what) {
ac = what.options[what.selectedIndex].text;
$text .= <<END;
function popac_changed(what) {
ac = 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("City", "-1", false, true);
END
what.form.popnum.options[0] = new Option("City", "-1", false, true);
END