summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-phonenum.html
diff options
context:
space:
mode:
authorlevinse <levinse>2010-12-21 06:26:12 +0000
committerlevinse <levinse>2010-12-21 06:26:12 +0000
commit46e04077cc22ff9d31e8e9896cbf97e31f1b0e7d (patch)
tree24fd7eb75360d3bda1cc8fc535f71ef013b87782 /httemplate/elements/select-phonenum.html
parent1eff7a1cd742bab7a0084d55f74b2f53c1f84e64 (diff)
self-service improvements: DIDs, RT10885
Diffstat (limited to 'httemplate/elements/select-phonenum.html')
-rw-r--r--httemplate/elements/select-phonenum.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/httemplate/elements/select-phonenum.html b/httemplate/elements/select-phonenum.html
index b98d140e4..1c13ae039 100644
--- a/httemplate/elements/select-phonenum.html
+++ b/httemplate/elements/select-phonenum.html
@@ -58,6 +58,25 @@
//run the callback
if ( callback != null )
callback();
+
+ var phonenum_sel = what.form.<% $opt{'prefix'} %>phonenum;
+ var bulkdid = document.getElementById('bulkdid');
+ if ( bulkdid != null ) {
+ var numCheckboxes = Math.min(phonenum_sel.options.length-1,<% $opt{'bulknum'} %>);
+ var i;
+ for(i = 0; i < numCheckboxes; i++){
+ document.getElementById('bulkdid_'+i).style.display = 'block';
+ var tn = phonenum_sel.options[i+1].value;
+ document.getElementById('checkbox_bulkdid_'+i).value = tn;
+ document.getElementById('label_bulkdid_'+i).innerHTML = tn;
+ }
+ for(i = numCheckboxes; i < <% $opt{'bulknum'} %>; i++){
+ document.getElementById('bulkdid_'+i).style.display = 'none';
+ document.getElementById('checkbox_bulkdid_'+i).value = '';
+ document.getElementById('label_bulkdid_'+i).innerHTML = '';
+ }
+ }
+
}
// go get the new phonenums