I installed module as described in readme. It works, saves data etc. But it never shows any popup when saving a form!
The only thing it shows is a blue div with white letters when i repoen unsaved node tat autosave saved.
What am I missing? Stealth mode is off.

CommentFileSizeAuthor
#2 autosave0.png33.55 KBmilovan
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

liquidcms’s picture

Status: Active » Postponed (maintainer needs more info)

a blue div with white letters? lol... perhaps a screenshot or what the white letters are at least might be helpful here? :)

milovan’s picture

FileSize
33.55 KB

Blue div with white letters is irrelevant to the question, but here is a screenshot you asked for anyway.

It appears when user opens node, changes and doesn't save it. Then later user access that very same node and is welcomed with blue div informing him node was autosaved and when. From there he can see changes, adopt or discard etc. That is perfectly fine. BUT user doesn't see any kind of popup when autosave saves form / node. And that is what interests me, why. I believe I ve done all installation / configuration procedure correctly.

Note: in attach is screenshot. Blue div is displayed at the bottom of CKEditor.
Configuration: wysiwyg dev, latest autosave.

liquidcms’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

again, you don't get how this works.. it saves when you are NOT submitting the form.. but in the background while you are working. what would be the point of saving when you save?

so i am confused by your question: you state no popup but then provide a screenshot showing the popup working exactly as it is designed to.. :)

liquidcms’s picture

i think best to just play around with this a little and it will likely become more obvious what it is doing. from your comments and screeenshots it sounds as though everything is working correctly. the module is used by a lot of people and does the function it is designed to do quite well - maybe you are looking for something other than what this is designed to do.

milovan’s picture

It seems we are not understanding each other or I misunderstood when popup should appear.

By description and my understanding, when user works on edit and then stops, after X seconds autosave should save his work in its own table in database and throw out popup notifying user it saved his work. Or actually it was meant that popup should display once user returns to edit node again? If the last one, then my apologies for confusion. Everything indeed works so far OK, just I was expecting a popup from autosave when it does save functionality in its table.

So to sum up:
popup I showed on screenshot is the one mentioned in features of this module and the only one user should expect? And it shows only when user returns to edit a node AFTER autosave already saved his previous work and node edit page was abandoned / closed?

Sorry once again for potential confusion.

liquidcms’s picture

the popup shows at 2 times:

- when, during edit, the AS module saves a snapshot to the db
- when initially editing a node and there is a saved version in the db (which should only exist if user did not save their work)

additionally, if the module is set in stealth mode; the first of these is suppressed.

milovan’s picture

- when, during edit, the AS module saves a snapshot to the db

Ok, so I do not see this first popup. Any ideas why?

liquidcms’s picture

possibly you have some other module with bad JS causing AS's js code to not be run? have you tried the module on a clean D6 install (1000's of others have.. :))?

perhaps try disabling some other modules to see which is causing the problem. i'd start with ones that have a JS component.

milovan’s picture

Thanks. Yes, I started doing exactly that, to narrow down the issue. I'll report what I find.

milovan’s picture

I think I managed to isolate problem. Starting with minimal/clean Drupal 6 starting point:
- installed clean instance of the latest Drupal v6.28
- installed dependencies we will need: imce v6.x-2.5, imce_wysiwyg v6.x-1.1, libraries v6.x-1.0
- installed latest autosave v6.x-2.11
- installed wysiwyg dev (which includes required patch) v6.x-2.4+35-dev
- installed ckeditor lib v3.6.6.1
- applied patch that allows autosaving on full screen in ckeditor

Result:
autosave worked as expected. (It showed both popups now)

The problem occurs when I upgrade to jQuery 1.5.2 I managed to capture an error in Firebug console when autosave tries to save form (and show popup that it saved). This is what I get:

TypeError: $box.queue(...) is undefined
var q = $box.queue().length, t = imce.vars.msgT || 1000;

It appears that IMCE bridge's JS doesn't work and that breaks autosave too.
Further testing makes IMCE's Upload file feature doesn't work properly (but it does upload the file, just doesn't show popup notification).
So I then disabled IMCE and IMCE WYSIWYG bridge and autosave worked!

Current conclusion is that this appers to be more IMCE issue rather than Autosave. And also it appears that it can break autosave too on higher jQuery version.

Note that I can not go back to older jQuery as my site uses this jQuery version due to some dependencies. Also I have been using it for quite some time and everything seemed to work with it so far.

Here is what I tried next:

I checked also jquery.field.js in autosave and it was v0.7 modified and accoridng to its changelog, it is compatible with jQuery 1.3.
I found new version 0.9.6 which is comaptible up to jQuery 1.6. I was thinking to modify 0.9.6 with changes from 0.7-mod.

What do you think, is there any sense doing this as autosave worked (for me) on jQuery 1.5.2?