Skip to main content
List Manager logo
List Manager Forum

Search Module trigger search on "enter"

User moon_682

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.

Moonsoft support

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,

User moon_682

Brilliant! works fine. Many thanks!

...
List Manager

Build different lists for your site

Buy now!
...
CalcBuilder

Create dynamic calculators

Buy now!