X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fsvc_acct_pop.pm;h=de41f5bb6ecd23464cfde750f11a94658ae52e17;hp=243c18a8b1c5545b9f12ae097a5c7f0634fbd967;hb=f822e27a1e00594332ffa487a1c284234c5580a6;hpb=2f33777f569ff435e4cc00769288b65f53fcfc0e diff --git a/FS/FS/svc_acct_pop.pm b/FS/FS/svc_acct_pop.pm index 243c18a8b..de41f5bb6 100644 --- a/FS/FS/svc_acct_pop.pm +++ b/FS/FS/svc_acct_pop.pm @@ -93,6 +93,7 @@ sub check { or $self->ut_number('ac') or $self->ut_number('exch') or $self->ut_numbern('loc') + or $self->SUPER::check ; } @@ -107,7 +108,8 @@ Returns: sub text { my $self = shift; - $self->city. ', '. $self->state. ' ('. $self->ac. ')/'. $self->exch; + $self->city. ', '. $self->state. + ' ('. $self->ac. ')/'. $self->exch. '-'. $self->loc; } =back @@ -120,6 +122,8 @@ sub text { =cut +#horrible false laziness with signup.cgi (pull special-case for 0 & 1 +# pop code out from signup.cgi??) sub popselector { my( $popnum, $state ) = @_; @@ -139,8 +143,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 @@ -164,7 +167,13 @@ END $text .= ''; #callback? return 3 html pieces? #''; $text .= qq!