WordPress.org

Ready to get started?Download WordPress

Forums

SimpleModal Login
[resolved] SimpleModal not working with other jQuery (4 posts)

  1. phaticon
    Member
    Posted 3 years ago #

    I have a site i'm working on and i'm using the SimpleModal plugin to make things simple, but now its causing my Superfish menu to not work properly. The dropdown menu will come down on hover but will not go back up on off hover state, unless the SimpleModal plugin is deactivated. Any help would be appreciated, since i'm working on 3 other sites at the same time.

    The site in question

  2. Eric Martin
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    The actual error is caused by another script:

    jQuery.easing[jQuery.easing.def] is not a function

    I believe that SimpleModal's correct use of including JavaScript may be causing the other scripts to break, since WordPress calls Query.noConflict();

    Hope that helps.

  3. phaticon
    Member
    Posted 3 years ago #

    Thanks, it does kind of help. At least now I know what is causing it, I was just racking my brain with this. I've been up for 36 hours straight coding. Now to try and fix it.

  4. phaticon
    Member
    Posted 3 years ago #

    I had to remove a line of code from the easing plugin and it all works great now. Below is what I removed and all easing still works!

    def: 'easeOutQuad',
    	swing: function (x, t, b, c, d) {
    		//alert(jQuery.easing.default);
    		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
    	},

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic