Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix simple bug url.indexOf is not a function #46

Open
vahidalvandi opened this issue Mar 15, 2020 · 1 comment
Open

fix simple bug url.indexOf is not a function #46

vahidalvandi opened this issue Mar 15, 2020 · 1 comment

Comments

@vahidalvandi
Copy link

<script type="text/javascript">
    /* wait for images to load */
    $(window).load( function() {
        $('.sp-wrap').smoothproducts();
    });
</script>

no work with jquery 3 bellow code work

<script type="text/javascript">

$(window).on('load', function() {  $('.sp-wrap').smoothproducts(); });
 
</script>
@vahidalvandi vahidalvandi changed the title fix simple bug fix simple bug url.indexOf is not a function Mar 15, 2020
@markyves
Copy link

markyves commented Apr 5, 2020

Try to add below code in your custom js instead.

$(function(){
$('.sp-wrap').smoothproducts();
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants