Skip to content

TypeError: $(...).nyroModal is not a function #251

@ghost

Description

My application in rails says me this error on firebug:

TypeError: $(...).nyroModal is not a function
beforeShowCont: function() {

When I call Script.js:
var width = 1152;
var height = 864;
$('.modal').nyroModal({
sizes: {
initW: width, initH: height,
minW: width, minH: height,
w: width, h: height
},
callbacks: {
beforeShowCont: function() {
width = $('.nyroModalCont').width();
height = $('.nyroModalCont').height();
$('.nyroModalCont iframe').css('width', width);
$('.nyroModalCont iframe').css('height', height);
}
}
});

I change "$('.modal').nyroModal({"
to $(".nyroModal").nm({ but it doesn't works.
What can I do?

Thanks.

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