[freeside-commits] freeside/httemplate/edit did_order.html, 1.4, 1.5
Erik Levinson
levinse at wavetail.420.am
Thu Apr 14 20:04:14 PDT 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv14560/httemplate/edit
Modified Files:
did_order.html
Log Message:
FS/FS/msa.pm
Index: did_order.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/did_order.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- did_order.html 11 Apr 2011 23:00:03 -0000 1.4
+++ did_order.html 15 Apr 2011 03:04:12 -0000 1.5
@@ -65,7 +65,7 @@
my($cgi, $object) = @_;
#process_o2m fields in process/did_order.html
- my @fields = qw( msa npa latanum ratecenter state quantity );
+ my @fields = qw( msanum npa latanum ratecenternum state quantity );
my @gfields = ( '', map "_$_", @fields );
map {
@@ -111,6 +111,22 @@
custnum.value = '';
custnum_search.value = '';
}
+
+ /* o2m or something else is broken, can't put this in the actual
+ component because random JS and other crap is rendered
+ onto the final output page */
+ function ratecenter_changed(rc) {
+ var idbase = rc.id.substring(0,rc.id.indexOf('_'));
+ var div = document.getElementById(idbase+'_rc_div');
+ var input = document.getElementById(idbase+'_rc_new');
+ if(rc.options[rc.selectedIndex].value == '0') {
+ div.style.display = 'inline';
+ }
+ else {
+ div.style.display = 'none';
+ }
+ input.value = '';
+ }
</SCRIPT>
END
More information about the freeside-commits
mailing list