Forum


List Manager Support

List Manager support
Forums
No se permite escribir sin estar logado. Por favor, login

Search Module trigger search on "enter" 24.12.2013 19:02

Is it possible to set the Search Module to trigger the search on "enter" after typing the search term?

It seems now that that the user must press the "search" button.

Re: Search Module trigger search on 'enter' 26.12.2013 11:13

Hello,

You should add some code at JOOMLA/modules/mod_listmanagersearch/assets/js/listmanagersearch.js. Add this:

$('.lms_search_input').keydown(function(event){
var code = event.which;
if(code==13){
$('.lms_search').click();
}
});

after:

$('.lms_search').click(function(){
var val=$(this).parent().find('.lms_search_input').val();
if (typeof observable !='undefined')
observable.publish('search',val);
});

Hope this helps. Regards,
Moonsoft Team
www.moonsoft.es

Re: Search Module trigger search on 'enter' 27.12.2013 02:45

Brilliant! works fine. Many thanks!
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect
FaLang translation system by Faboba

Lo que nuestros clientes opinan de nosotros