• Resolved subsomatic1

    (@subsomatic1)


    As soon as I fill out the select boxes, there seems to be an ajax search that reloads the page automatically without clicking on the search button. This feels a bit weird. Is there some way to disable the ajax behaviour?
    TIA!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pektsekye

    (@pektsekye)

    Hello,

    Try to replace the code:

    
            if (selects.length == values.length){// last drop-down is selected 
              if (this.canShowExtra)
                this.showExtra(values);
              else  
                this.submit();     
            } else {
    

    with:

    
            if (selects.length == values.length){// last drop-down is selected 
              if (this.canShowExtra)
                this.showExtra(values);    
            } else {
    

    in the file:
    wp-content/plugins/ymm-search/view/frontend/web/main.js

    Stanislav

    Thread Starter subsomatic1

    (@subsomatic1)

    Works! Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Ajax Search’ is closed to new replies.