Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. var isExec1 = (data.result[0].isExecute) == 1 ? true : false;
  2. console.log(isExec1);
  3. $('label#apiTokenOne').empty().append(data.result[0].apiToken)
  4. toggleswitch(isExec1,'');
  5. //parse data to element
  6. $('label#apiTokenTwo').empty().append(data.result[1].apiToken)
  7. var isExec2 = (data.result[1].isExecute) == 1 ? true : false;
  8.  
  9. },
  10. error: (error) => {
  11. console.log(JSON.stringify(error));
  12. }
  13. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement