Jump to content

Error Javascript en BlockSearch


Perrotekel

Recommended Posts

He podido ver que si elimino de blocksearch-top.tpl el codigo


[removed]
       {literal}

       function formatSearch(row) {
           return row[2] + ' > ' + row[1];
       }

       function redirectSearch(event, data, formatted) {
           $('#search_query').val(data[1]);
           document.location.href = data[3];
       }

       $('document').ready( function() {
           $("#search_query").autocomplete(
               '{/literal}{$base_dir}{literal}search.php', {
               minChars: 3,
               max:10,
               width:500,
               scroll: false,
               formatItem:formatSearch,
               extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter]
           }).result(redirectSearch)
       });
       {/literal}
   [removed]




Lo soluciono. Alguna idea!!

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...