Skip to content

$.get is not opening content in specified #id modal div #54

Description

@AnghelGabriel
                $('#modal-window').modal({ 
                    lockClass: 'modal-lock',
                    overlayClass: 'modal-overlay',
                    closeOnEsc: false,
                    closeOnOverlayClick: false,    
                    onBeforeClose: null,
                    onClose: null, 
                    onOpen: function(el, options){
                        $.get('http://'+siteroot+modalPath+modalContent+'.php', function(data){
                            el.html(data);  
                        }); 
                    },
                    cloning: true
                }).open();

I'm using this. But when it openes the php file it just dumps the content in "modal-overlay" div.
Am i missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions