diff options
author | Mark Wells <mark@freeside.biz> | 2014-07-21 15:35:33 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-07-21 15:35:40 -0700 |
commit | 8fdc0ea36474cfb3d1389f41691c14598559cbe7 (patch) | |
tree | 1984c9268d53df1edb76cf40575499cfb3e0d2c4 /httemplate/misc/part_pkg_fcc_options.html | |
parent | 08db5f6900bb754efb597a2967adde4dbd12e731 (diff) |
477 report rewrite, #28020
Diffstat (limited to 'httemplate/misc/part_pkg_fcc_options.html')
-rw-r--r-- | httemplate/misc/part_pkg_fcc_options.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/httemplate/misc/part_pkg_fcc_options.html b/httemplate/misc/part_pkg_fcc_options.html index 1f5d4a8bf..f74328446 100644 --- a/httemplate/misc/part_pkg_fcc_options.html +++ b/httemplate/misc/part_pkg_fcc_options.html @@ -90,8 +90,8 @@ <& .checkbox, 'is_voip' &> <LABEL FOR="is_voip">This package provides VoIP telephone service</LABEL> <FIELDSET ID="voip"> - <LABEL FOR="voip_ott">Do you also provide last-mile connectivity?</LABEL> - <& .checkbox, 'voip_ott' &> + <& .checkbox, 'voip_lastmile' &> + <LABEL FOR="voip_lastmile">Do you also provide last-mile connectivity?</LABEL> </FIELDSET> </P> <DIV WIDTH="100%" STYLE="text-align:center"> @@ -103,8 +103,8 @@ // this form is invoked as a popup; the current values of the parent // object are in the form field ID passed as the 'id' param -var parent_id = window.parent.document.getElementById('<% $parent_id %>'); -var curr_values = JSON.parse(window.parent_id.value); +var parent_input = window.parent.document.getElementById('<% $parent_id %>'); +var curr_values = JSON.parse(window.parent_input.value); var form = document.forms['fcc_option_form']; var media_types = <% encode_json($media_types) %> var technology_labels = <% encode_json($technology_labels) %> @@ -129,6 +129,9 @@ function save_changes() { var form = document.forms['fcc_option_form']; var data = {}; for (var i = 0; i < form.elements.length; i++) { + if (form.elements[i].type == 'submit') + continue; + // quick and dirty test for whether the element is displayed if (form.elements[i].clientHeight > 0) { if (form.elements[i].type == 'checkbox') { @@ -140,7 +143,9 @@ function save_changes() { } } } - parent_id.value = JSON.stringify(data); + parent_input.value = JSON.stringify(data); + // update the display + parent.show_fcc_options(); parent.cClick(); //overlib } |