Object Admin Filter - Apply filter when pressing ENTER

Description

When I try to edit a filter, I naturally press ENTER to submit the new filter. However, this ENTER activates the Clear Filter form so I end up reloading the page with no filter.

I found a way round this by changing line 319 of /farcry/core/tags/formtools/objectadmin.cfm from
<ft:farcryButton value="clear filter" />
to
<ft:farcryButton value="clear filter" type="button" />

Could this be put into future code releases so that the Filter system is easier to use?

Environment

5.1.2

Activity

Frederic Altorfer February 15, 2011 at 1:02 AM

Implemented bDefaultAction on formtool buttons to handle submission correctly when pressing the enter key.

Example:
<ft:buttonPanel>
<ft:button value="Clear Filter" />
<ft:button value="Apply Filter" bDefaultAction="true" />
</ft:buttonPanel>

Geoff Bowers February 9, 2011 at 1:03 AM

Need to work out a universal way to nominate the default button index ie. how do you state which button will fire on ENTER.

Geoff Bowers March 8, 2010 at 1:51 PM

Tried to make the suggested change but it doesn't work under the new jquery ui buttons.

This is issue is still happening. ie. once the clear filter button is active its the default when you hit the return key.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created July 20, 2009 at 10:12 AM
Updated February 15, 2011 at 3:39 AM
Resolved February 15, 2011 at 3:39 AM