Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 2012.3
    • Fix Version/s: None
    • Component/s: Legacy > Extensions
    • Labels:
      None
    • Environment:

      Operating System:
      PHP Version: (please be specific, like '4.4.3' or '5.1.5')
      Database and version:
      Browser (and version): Safari

      Description

      Hi

      eZ Autosave is only triggered when the user leaves an input field. I noticed few bugs with this:

      • if you were modifying an eZ XML field, clicking on the back button won't trigger autosave. Works fine on regular text input does work sometimes...
      • if you were on a text input, clicking on the back button does trigger autosave (you can see the notification) but when you come back the change is not there anymore
      • if you were on a text input, leaving the input triggers autosave. If now you click on back button from the browser, the edit form is shown again instead of showing the previous page, you need to click back again as if the autosave process has added a new entry in the navigation history.

      Screencast: https://vimeo.com/42960515
      Password: ezsystems

        Activity

        Hide
        Philipp Kamps added a comment -

        The autosave doesn't recognize changes in eZ XML fields. The problem is that only the iframe gets updated and not the corresponding textarea HTML tag.

        You need to add following:

        eZAutoSubmit.prototype.submit = function (fields) {
        var that = this;

        // Save iframe content into textarea
        if( typeof( tinyMCE ) != 'undefined' && tinyMCE !== null )

        { tinyMCE.triggerSave(); }

        If I have some extra time I'll create a pull request.

        Show
        Philipp Kamps added a comment - The autosave doesn't recognize changes in eZ XML fields. The problem is that only the iframe gets updated and not the corresponding textarea HTML tag. You need to add following: eZAutoSubmit.prototype.submit = function (fields) { var that = this; // Save iframe content into textarea if( typeof( tinyMCE ) != 'undefined' && tinyMCE !== null ) { tinyMCE.triggerSave(); } If I have some extra time I'll create a pull request.

          People

          • Assignee:
            unknown
            Reporter:
            Quoc-Huy NGUYEN DINH
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: