FLUID-2357: Refresh saves and applies changes

Metadata

Source
FLUID-2357
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Michelle D'Souza
Reporter
Justin Obara
Created
2009-03-17T09:29:49.000-0400
Updated
2009-03-19T10:00:17.000-0400
Versions
N/A
Fixed Versions
  1. 1.0
Component
  1. UI Options

Description

Refresh saves and applies changes

Steps to reproduce:

1) Open the UI Options example
http://build.fluidproject.org/fluid/fluid-components/html/templates/UIOptions.html

2) Changes some of the settings (do not save changes)

3) refresh the browser

Notice that the changes are applied when the browser refreshes.

Environments

FF2, FF3, Opera 9.6, Safari 3.2 (Mac OS 10.5)
Safari 3.2 (Mac OS 10.4)
FF2, FF3, IE6, IE7, Opera 9.6 (Win XP)
FF3, IE7 (Win Vista)
IE6 (Win 2000)

Comments

  • Justin Obara commented 2009-03-17T09:30:57.000-0400

    I'm guessing that as changes are being made, they are written to the cookie, on refresh the page is redrawn based on what is in the cookie. If this is the case, only writing to the cookie on "Save and apply" should fix this issue.

  • Justin Obara commented 2009-03-17T09:31:49.000-0400

    Bug Parade 1.0 release

  • Michelle D'Souza commented 2009-03-19T09:02:29.000-0400

    The preview really shouldn't be saving to a cookie so the solution is to make a temporary settings store and use that for the preview's uiEnhancer.

  • Jacob Farber commented 2009-03-19T09:46:11.000-0400

    Tried it out, and it works nicely

  • Justin Obara commented 2009-03-19T10:00:17.000-0400

    Verified fix using the following:

    FF2, FF3, Opera 9.6, Safari 3.2 (Mac OS 10.5)
    FF2, FF3, IE6, Opera 9.6 (Win XP)
    FF3, IE7 (Win Vista)