Announcement

Collapse
No announcement yet.

Auto-suggest

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Auto-suggest

    Hi,

    Is there an easy way of removing auto-suggest from the quick search?

    Thanks
    Graham

    ___________________________________

    www.Briggsbits.co.uk
    The online store for Briggs and Stratton spare parts

    #2
    You can remove it from both the Quick Search and the full search by editing actinicsearch.js and looking for the line:
    Code:
    AddEvent(window,"load",AddAutoSuggest);
    Amend it to be:
    Code:
    // AddEvent(window,"load",AddAutoSuggest);
    If you want this removed only on the Quick Search and kept on the Advanced Search, that's much more complex.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman,

      Line duly commented out and note added to script changes.

      Have a good new year
      Graham

      ___________________________________

      www.Briggsbits.co.uk
      The online store for Briggs and Stratton spare parts

      Comment


        #4
        Here's how to do it selectively so you can still have it on the Advanced Search capability.
        Edit actinicsearch.js (remove tweak from above) and look for the line:
        Code:
        if (document.forms[nIndex] && document.forms[nIndex].SS)
        Replace it with:
        Code:
        if (document.forms[nIndex] && document.forms[nIndex].SS && (document.forms[nIndex].SS.getAttribute('class').indexOf('noauto') == -1))
        Then add a class noauto to the search input fields you want to disable.
        E.g. in layout Standard Quick Search Bar, change:
        Code:
        <input type="text" name="SS" size="18" value="Quick Search" onfocus="this.value='';" class="quick-search-text" />&nbsp;
        To:
        Code:
        <input type="text" name="SS" size="18" value="Quick Search" onfocus="this.value='';" class="quick-search-text noauto" />&nbsp;
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Does changing the ,js work when previewing the site offline.

          I can't seem to get is to work. I am changing the .js code as above but it doesn't seem to work.

          Comment


            #6
            On the standard SD 2013 demo site I tried, autosuggest doesn't operate on the Preview pages.
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment

            Working...
            X