daily pastebin goal
56%
SHARE
TWEET

Untitled

a guest Feb 19th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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');});
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top