function addCpt() {
  clearFields();
  var cptCode = $("#addCptInput").val();
  currentCpt = cptCode;
  var $selectBox = $('select[name="cptList"]').select2();
  var tempObj = $.extend({}, cptObj);
  tempObj.id = cptCode;
  tempObj.text = cptCode;
  store.set("cpt" + cptCode, tempObj);
  updateSelect();
  $("#addCptInput").val("");
  $selectBox.val(cptCode).trigger("change");
  $("#cptHeader").text("CPT- " + cptCode);
  $("#cptDetails").addClass("show");
  $("#inputCharge").focus();
  showButtons();
}
// Add CPT code to localStorage then open details for specified CPT
Add CPT code to localStorage then open details for specified CPT
Add CPT code to localStorage then open details for specified CPT
function addCpt() {
  clearFields();
  var cptCode = $("#addCptInput").val();
  currentCpt = cptCode;
  var $selectBox = $('select[name="cptList"]').select2();
  var tempObj = $.extend({}, cptObj);
  tempObj.id = cptCode;
  tempObj.text = cptCode;
  store.set("cpt" + cptCode, tempObj);
  updateSelect();
  $("#addCptInput").val("");
  $selectBox.val(cptCode).trigger("change");
  $("#cptHeader").text("CPT- " + cptCode);
  $("#cptDetails").addClass("show");
  $("#inputCharge").focus();
  showButtons();
}
function addCpt ( ) { clearFields ( ) ; var cptCode = $ ( "#addCptInput" ) . val ( ) ; currentCpt = cptCode ; var $selectBox = $ ( 'select[name="cptList"]' ) . select2 ( ) ; var tempObj = $ . extend ( { } , cptObj ) ; tempObj . id = cptCode ; tempObj . text = cptCode ; store . set ( "cpt" + cptCode , tempObj ) ; updateSelect ( ) ; $ ( "#addCptInput" ) . val ( "" ) ; $selectBox . val ( cptCode ) . trigger ( "change" ) ; $ ( "#cptHeader" ) . text ( "CPT- " + cptCode ) ; $ ( "#cptDetails" ) . addClass ( "show" ) ; $ ( "#inputCharge" ) . focus ( ) ; showButtons ( ) ; }
Add CPT code to localStorage then open details for specified CPT
Add CPT code to localStorage then open details for specified CPT