Travis,
Wow, this is a pretty big hole to have gone unnoticed.
Your fix would indeed work perfectly well for all successful
edits.
However we have code that restores the lozenge to its
original state in
the case of server-side edit failures. Your code was
removing the
lozenge before any response actually came back from the
server, so that
fallback would not have worked for these types of edits.
I'm committing a more complete fix that allows the fallback
to work, and
has the added benefit of just putting the lozenge into
'processing'
until the server-side operation actually finishes, and then
makes the
lozenge go poof -- which gives the user an accurate picture
of when the
edit is really done.
Thanks for flagging me on this.
Matthew
svncheckin osafoundation.org wrote:
> Revision
> 5424 <http://cvs.osafoundation.org/viewcvs.cgi?rev=5
424&view=rev>
> Author
> travis
> Date
> 2007-08-15 20:12:33 -0700 (Wed, 15 Aug 2007)
>
>
> Log Message
>
> Fix for bug 10486
> < -690,7 +690,11 
> self.setSelectedCalItem(ev);
> break;
> case 'save':
> - setLozengeProcessing(cmd);
> + if (cmd.data.data.getEventStamp()){
> + setLozengeProcessing(cmd);
> + } else {
> + removeEvent(cmd.data);
> + }
> // Do nothing
> break;
> case 'saveFailed':
>  -725,7 +729,9 
> }
> break;
> case 'saveSuccess':
> - saveSuccess(cmd);
> + if (cmd.data.data.getEventStamp()){
> + saveSuccess(cmd);
> + }
> break;
> case 'remove':
> // Show 'processing' state here
>
>
>
------------------------------------------------------------
------------
>
> _______________________________________________
> Commits-Cosmo mailing list
> Commits-Cosmo osafoundation.org
> http://lists.osafoundation.org/cgi-bin/mail
man/listinfo/commits-cosmo
_______________________________________________
cosmo-dev mailing list
cosmo-dev lists.osafoundation.org
http://lists.osafoundation.org/mailman/listinfo/cosmo-d
ev
|