Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 11-06-2013 15:52:46

sppars
Member
Registered: 01-25-2006
Posts: 301

Mini Search and 8.0.7 Update

With update 8.0.7 form updates by pressing the enter key have been suppressed. Which I can understand because of issues with Ajax. However, for the mini search it seems to be much user friendly if the enter key would not be suppressed. I tried to undo the update for mini search by changing the skinwidgetminisearch include code:

Code:

if (event.which == 13) {event.preventDefault(); return false;}

to:

Code:

if (event.which == 13) {return true;}

But the behavior is still the same. I thought of changing the same line of  code in the frontend.js but if I do that I believe it would apply to all input text boxes. Is there anyway to revert back to the old behavior just for the Mini Search widget?

Offline

 

#2 11-07-2013 11:43:07

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19798
Website

Re: Mini Search and 8.0.7 Update

In frontend.js you an explicitly change the behavior of just the text input field:

Code:

jQuery('input:text, input:password').keydown(function(event){

     if (event.which == 13) {event.preventDefault(); return false;}

     return true;

});

Becomes:

Code:

jQuery('input:text, input:password').keydown(function(event){

     if (jQuery(this).attr('id') == 'ecom--minisearch--ecom--prodsearch--string') {return true;}

     if (event.which == 13) {event.preventDefault(); return false;}

     return true;

});

Nick Hendler

Offline

 

Board footer