function Project(t){this.record=function(){return t}}Project.prototype.add=function(t,n,o){"function"!=typeof o&&(o=function(){});var a=kanban.text.project_added.sprintf(boards[t].current_user().record().short_name,n),r={action:"save_project",post_type:"kanban_project",kanban_nonce:$("#kanban_nonce").val(),project:{title:n,board_id:t},comment:a};$.ajax({method:"POST",url:kanban.ajaxurl,data:r}).done(function(n){try{boards[t].record.project_records[n.data.project.id]=n.data.project}catch(t){}o.call(n)})};