Skip to content

Custom text not working in demo #133

@rowanbradley

Description

@rowanbradley

I have copied your demo page lock stock and barrel onto my site. None of the examples in your demo file are displaying the custom message. The warning box always says:
Do you want to leave this site?
Changes that you made may not be saved.
Prevent this page from creating additional dialogues.
[Leave|Stay]
I haven't made any changes to your code (other than to change the location of the JS files to match my site, and to use the latest version of JQuery).

Another small issue. Why is it correct to say "Changes that you made MAY not be saved". Under what circumstances would they have been saved? I thought the point of this code was only to put up the alert if the user HAD made changes, and HAD NOT saved them. In which case why isn't it more accurate to say "Your changes HAVE NOT been saved"?

Thanks - Rowan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions