Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $('#widget').on('show', function (event) {
  2. var page_id = $('#widget').data('modal').options.page_id;
  3. var widget_id = $('#widget').data('modal').options.widget_id;
  4. $.ajax({
  5. url: ADMIN_INCLUDES_URL + 'widget/widget.php',
  6. dataType: 'html',
  7. type: 'POST',
  8. async: false,
  9. data: {
  10. 'page_id': page_id,
  11. 'widget_id': widget_id,
  12. 'action': 'form'
  13. },
  14. success: function(r){
  15. $('#widget').html(r);
  16. }
  17. });
  18. });
  19.  
  20. $('#widget').on('click', '.click', function(){ console.log('clicked');});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement