Option to ignore old CDRs, RT#81480
[freeside.git] / httemplate / elements / select-exchange.html
index a820146..9d6c390 100644 (file)
@@ -20,7 +20,7 @@
     var exchangeerror = document.getElementById('<% $opt{'prefix'} %>exchangeerror');
     exchangeerror.style.display = 'none';
 
-    what.form.<% $opt{'prefix'} %>phonenum.disabled = 'disabled';
+    $('#<% $opt{'prefix'} %>phonenum').prop('disabled', true);
 
     areacode = what.options[what.selectedIndex].value;
 
 
       var reply = JSON.parse(exchanges);
       // blank the current exchange
-      $('#<% $opt{prefix} %>exchange').empty;
+      $('#<% $opt{prefix} %>exchange').empty();
 
       // blank the current phonenum too
-      $('#<% $opt{prefix} %>phonenum').empty;
+      $('#<% $opt{prefix} %>phonenum').empty();
       if ( what.form.<% $opt{'prefix'} %>phonenum.type != 'select-multiple' ) {
         jopt($('#<% $opt{'prefix'} %>phonenum'), '', 'Select phone number');
       }