FLUID-1661: undo/redo can become out of sync with text

Metadata

Source
FLUID-1661
Type
Bug
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Justin Obara
Reporter
Justin Obara
Created
2008-10-06T09:12:02.000-0400
Updated
2008-11-10T09:22:36.000-0500
Versions
  1. 0.6beta1
Fixed Versions
  1. 0.6
Component
  1. Inline Edit

Description

undo/redo can become out of sync with text

Steps to reproduce:

1) Open the bSpace example from the daily build site:
http://build.fluidproject.org/fluid/sample-code/inline-edit/section-info/section-info.html

2) Edit the text in one of the inline edit fields (e.g. to "change 1")

3) Click out side of the inline edit field to save the edit

4) Edit the same inline edit field again (e.g. to "change 2")

5) Click out side of the inline edit field to save this edit

6) Click the undo button, the text should now be "Change 1"

7) Activate the inline edit field again, but click outside to close edit mode without making any changes

8) Click the redo icon. Notice that it changes to an undo icon without changing the value to "Change 2". Now undo = "Change 2" and redo = "Change 1" when they should be the other way around

Environments

FF2, FF3, Opera 9.5, Safari 3 (Mac OS 10.5)
FF2, FF3, IE6, IE7, Opera 9.5 (Win XP)
FF3, IE7 (Win Vista)
FF3, IE6 (Win 2000)

Comments

  • Antranig Basman commented 2008-11-07T17:18:19.000-0500

    Fixed at revision 5965

  • Justin Obara commented 2008-11-10T09:22:36.000-0500

    Verified fix using:

    FF2, FF3, Opera 9.5, Safari 3 (Mac OS 10.5)
    FF2, FF3, IE6, Opera 9.5 (Win XP)
    FF3, IE7 (Win Vista)