Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $(".act_btn").on("click", function(){
  2. var act_id = $(this).attr("data-id");
  3. startRecordItem = new StartRecordItem({
  4. activity: act_id,
  5. });
  6. startRecordItem.save({
  7. success: function(response){console.log(response)}
  8. });
  9.  
  10. /*
  11. recordItem = new RecordItem({
  12. id: ... <---- I have to populate this with the data from the server response.
  13. });
  14. */
  15.  
  16. {"activity": 1, "id": 14}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement