Re: search and check twice a role in sharing view in Plone 4.3

Vincent Fretin <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CAD=kyd8iskgoLt6ZxOysR5qQ9Daza38PynbsL0+XDgvy40LtSA@mail.gmail.com>
The 'input' event works on IE9, but not in IE7 or 8. The 'change' event
works in IE7,8,9, but the user will never click outside the input or press
tab to lose the focus... the event is useless here for me.
If we use the keypress event (jquery.autocomplete uses this event), it
works on latest Firefox, Chromium, IE7,8,9, Opera 12.16.
I commit the change with keypress.

Vincent <http://www.ecreall.com>


On Thu, Aug 22, 2013 at 3:15 PM, Nathan Van Gheem <[email protected]>wrote:

> I'm not sure why we(maybe it was me) put that in there. Please fix(as long
> as it still works in IE).
>
>
> Thanks
>
>
>  On Thu, Aug 22, 2013 at 8:04 AM, Vincent Fretin <[email protected]
> > wrote:
>
>>  Hi,
>>
>> I find something annoying in the jquery reimplementation of sharing
>> search in Plone 4.3.2-pending.
>> I tested with Firefox 23 and Chromium 28.
>> Go to the sharing tab, do a search but don't click the button and don't
>> press enter, and check a role in the results, it will be unchecked right
>> away because there is a change event triggered when the search input lose
>> the focus.
>>
>> In kss-bbb.js, we have
>> $('#content-core').delegate('#sharing-user-group-search', 'change input',
>> function()
>> Is there a reason we use the change event here?
>> Can we remove the change event and just use the input event?
>> This fixes the issue. I didn't test on IE.
>>
>> Vincent Fretin
>> Ecreall
>> http://www.ecreall.com
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Plone-developers mailing list
>> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/plone-developers
>>
>>
>
>
> --
> Nathan Van Gheem
> Solutions Architect
> Wildcard Corp
>

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.