[Infusion-users] Inline Edit (simple) Undo/redo

Justin Obara obara.justin at gmail.com
Thu Jan 21 18:40:50 UTC 2010


Hello,

The modelChanged event also passes along a source, which should allow you to find out which inlineEdit field it was that changed.

- Justin
On 2010-01-21, at 10:27 AM, Harris Wong wrote:

> Thanks, that helps.  But is there a way to get the current node that I am on?  Such as the viewNode in afterFinishEdit.
> 
> Thanks,
> harris
> 
> On 21/01/2010 9:08 AM, Justin Obara wrote:
>> Hello Harris,
>> 
>> It seems that the event that you want to be listening to is "modelChanged". This event should fire every time the model is changed, including when a call to undo/redo is made. Both the new and the old model are passed to the modelChanged event, which should provide you with the correct data to update the database with.
>> 
>> Hope that helps
>> Justin
>> On 2010-01-20, at 4:50 PM, Harris Wong wrote:
>> 
>>   
>>> Hi,
>>> 
>>> I have a question on the undo/redo function from the Fluid Inline Edit (Simple) demo.  When I clicked undo, it didn't revert the value back in the database.  In other words, I didn't see any events being fired when I clicked "undo".  I tried looking for the "componentDecorators" and the "undoDecorator" on http://wiki.fluidproject.org/display/fluid/Simple+Text+Inline+Edit+API#SimpleTextInlineEditAPI-SupportedEvents, but I couldn't find anything.  Can someone kindly points me to the API for the undoDecorator?  I afraid I am missing something in my javascript.
>>> 
>>> The code that I copied was from the demo, http://fluidproject.org/releases/1.1.2/demos/inlineEdit/simple/demo.html
>>> 
>>> 
>>> Thanks,
>>> Harris
>>> _______________________________________________
>>> Infusion-users mailing list
>>> Infusion-users at fluidproject.org
>>> http://fluidproject.org/mailman/listinfo/infusion-users
>>>     
>>   
> 




More information about the Infusion-users mailing list