Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#widget').on('show', function (event) {
- var page_id = $('#widget').data('modal').options.page_id;
- var widget_id = $('#widget').data('modal').options.widget_id;
- $.ajax({
- url: ADMIN_INCLUDES_URL + 'widget/widget.php',
- dataType: 'html',
- type: 'POST',
- async: false,
- data: {
- 'page_id': page_id,
- 'widget_id': widget_id,
- 'action': 'form'
- },
- success: function(r){
- $('#widget').html(r);
- }
- });
- });
- $('#widget').on('click', '.click', function(){ console.log('clicked');});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement