<![CDATA[ A ghost from the past: You have changes pending; are you sure you want to cancel? - My Forums]]> https://forums.modx.com/thread/?thread=97622 <![CDATA[A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-527969 I just updated Articles to 1.7.11 and every time i want to close an Article the managers (REVO 2.3.5-pl) asks: "You have changes pending; are you sure you want to cancel?" followed by chrome asking basically the same thing
this seems to be an old problem since i found it also here http://tracker.modx.com/issues/7558
Anyone else experiencing this? is there a fix for it? is there a way to figure out which formfield is dirty?

Tnx
RDG]]>
rdaneeel Jul 07, 2015, 02:10 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-527969
<![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-563766 BobRay Jan 25, 2019, 11:40 PM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-563766 <![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561511 clutchmarketing Sep 12, 2018, 03:26 PM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561511 <![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561500 BobRay Sep 12, 2018, 08:28 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561500 <![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561496 clutchmarketing Sep 11, 2018, 10:56 PM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-561496 <![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-553949 Was this fixed two years ago and returned in the latest version?]]> johnsim Sep 16, 2017, 10:47 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-553949 <![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-531510 Quote from: claytonk at Jul 22, 2015, 02:45 PM
Quote from: rdaneeel at Jul 22, 2015, 02:41 PM
Hi,
Actuatualy Firefox is not free from this menace. to recreate the problem open een Article blogpost and hit the 'close' button.

Yep, I get it in Firefox too. Will look into the ExtJS problem, I'm not fluent but know enough to do some damage.
Am getting issue on all browsers and platforms. Seems to be a universal issue - is there any resolution to it yet? Has this been posted as a bug?]]>
moniarde Sep 15, 2015, 12:10 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-531510
<![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528743 Quote from: rdaneeel at Jul 22, 2015, 02:41 PM
Hi,
Actuatualy Firefox is not free from this menace. to recreate the problem open een Article blogpost and hit the 'close' button.

Yep, I get it in Firefox too. Will look into the ExtJS problem, I'm not fluent but know enough to do some damage.]]>
claytonk Jul 22, 2015, 09:45 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528743
<![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528741 Actuatualy Firefox is not free from this menace. to recreate the problem open een Article blogpost and hit the 'close' button.
You should get a warning 'You have changes pending; are you sure you want to cancel?'
I tracked this problem down to the update.js on line #550 (and create.js) from Articles
tagField.enable()
.

When Articles form is initialized it does an AJAX call to get the tags for your blogpost. After getting the tags an enable() method is called to enable the tags field to be editted. BUT this enable method somehow also makes the tag_field Dirty. that's why you get the warning.

I tried to fix the problem but there is nu clean() method unfortunatly in ExtJS (https://www.sencha.com/forum/showthread.php?63445-Any-way-to-reset-the-dirty-property-of-form-fields-back-to-clean). So i'm stuck
I don't speak ExtJS so i can't fix this problem. I hope someone else with more Extjs knowledge can fix this]]>
rdaneeel Jul 22, 2015, 09:41 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528741
<![CDATA[Re: A ghost from the past: You have changes pending; are you sure you want to cancel?]]> https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528738 http://forums.modx.com/thread/?thread=88004&page=6

Latest from my annoying side:

Latest Firefox seems to be free of this menace
Latest Chrome is allowing this menace

Problem is agnostic to Articles or any Rich Text Editor
Problem is uber irritating

TinyMCE could have a fix
tinymce.init({
    plugins: "autosave",
    autosave_ask_before_unload: false
});

Here is JavaScript code handling the popup:
window.onbeforeunload = function() {
//I could remove this line, and load this script in my Manager specific pages
    return 'You have unsaved annoying changes!'; 
}
]]>
donshakespeare Jul 22, 2015, 08:54 AM https://forums.modx.com/thread/97622/a-ghost-from-the-past-you-have-changes-pending-are-you-sure-you-want-to-cancel?page=2#dis-post-528738