function saveCpt(cpt) {
  var i = 0;
  var copyObj = $.extend({}, cptObj);
  copyObj.id = cpt;
  copyObj.text = cpt;
  for (p in cptObj) {
    if (p == "id" || p == "text") {
      continue;
    }
    copyObj[p] = $("#" + cptDetailHtmlList[i]).val();
    i++;
  }
  store.set("cpt" + cpt, copyObj);
  clearProfilesTab();
  $("#successMsg")
    .addClass("valid")
    .addClass("show")
    .text("Saved CPT:  " + cpt);
}
// Save CPT code to localStorage then exit details
Save CPT code to localStorage then exit details
Save CPT code to localStorage then exit details
function saveCpt(cpt) {
  var i = 0;
  var copyObj = $.extend({}, cptObj);
  copyObj.id = cpt;
  copyObj.text = cpt;
  for (p in cptObj) {
    if (p == "id" || p == "text") {
      continue;
    }
    copyObj[p] = $("#" + cptDetailHtmlList[i]).val();
    i++;
  }
  store.set("cpt" + cpt, copyObj);
  clearProfilesTab();
  $("#successMsg")
    .addClass("valid")
    .addClass("show")
    .text("Saved CPT:  " + cpt);
}
function saveCpt ( cpt ) { var i = 0 ; var copyObj = $ . extend ( { } , cptObj ) ; copyObj . id = cpt ; copyObj . text = cpt ; for ( p in cptObj ) { if ( p == "id" || p == "text" ) { continue ; } copyObj [ p ] = $ ( "#" + cptDetailHtmlList [ i ] ) . val ( ) ; i ++ ; } store . set ( "cpt" + cpt , copyObj ) ; clearProfilesTab ( ) ; $ ( "#successMsg" ) . addClass ( "valid" ) . addClass ( "show" ) . text ( "Saved CPT:  " + cpt ) ; }
Save CPT code to localStorage then exit details
Save CPT code to localStorage then exit details