[TYPO3-core] RFC: Bug #16681: Live-Search: Search field does not always revert to default state when losing focus

Ernesto Baschny [cron IT] ernst at cron-it.de
Sat Jan 22 19:00:05 CET 2011


Jeff Segars schrieb am 22.01.2011 17:13:
> On 1/19/11 4:01 PM, Jeff Segars wrote:
>> Hey guys,
>>
>> This is a SVN patch request.
>>
>> Type: Bugfix
>> Bugtracker reference: http://bugs.typo3.org/view.php?id=16681
>> Branch: trunk
>>
>> Problem:
>> When leaving the search field, if there is no text entered Live Search
>> should return to its default state and display "Enter search term." This
>> happens consistently when clicking in the black top bar. When clicking
>> into an iFrame, it only works for the initial module that is loaded. As
>> you continue to use other modules in the backend, it quits working.
>>
>> Solution:
>> Add a new event listener outside the scope of the ExtJS widget that
>> handles the blur event. Thanks to Steffen Kamper for suggesting this
>> approach.
>>
>> Additional Notes:
>> To test, just use the backend and as you browser between modules make
>> sure that the Live Search shows and hides consistently no matter where
>> you click. Without the patch, the hiding will be very inconsistent when
>> clicking inside iframes.
>>
>> Thanks,
>> Jeff
> 
> Attached v5 brings in the changes from Ingo's #17210 so that the help
> text reappears on focus also.

+1 by reading and testing.

Just one indention to be fixed:

+       onViewClick : function(doFocus){
+               doFocus = false;
+       TYPO3.BackendLiveSearch.superclass.onViewClick.apply(this,
arguments);

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list