Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. $(".alert_ho").on('click', function() {
  2. let shop_id = $(this).val();
  3. let task_id = '<?php echo $task->task_id ?>';
  4. var json = {
  5. 'isMessage': true,
  6. 'title': 'Confirmation Task',
  7. 'body': 'Are you sure to take this alert ho ?',
  8. 'type': 'confirmation',
  9. 'url_api': `ho_api/alert_ho?shop_id=${shop_id}&task_id=${task_id}`,
  10. 'next': true,
  11. };
  12. window.ReactNativeWebView.postMessage(JSON.stringify(json));
  13. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement