Fixed "Are you sure you want to leave this page?" even when layout is not dirty.

The issue was that during page initialization, the Content element's HTML would be serialized with the URL encoded version of its contents, but shortly after that HTML would be URL decoded, causing a difference in the serialized JSON between the initial serialization and final serialization (upon page unload).
This commit is contained in:
Sipke Schoorstra
2015-03-04 11:27:18 +01:00
parent 0f7d385350
commit 657a285650
3 changed files with 3 additions and 3 deletions

View File

@@ -919,7 +919,7 @@ var LayoutEditor;
value.contentType,
value.contentTypeLabel,
value.contentTypeClass,
value.html,
decodeURIComponent(value.html.replace(/\+/g, "%20")),
value.hasEditor);
return result;

File diff suppressed because one or more lines are too long

View File

@@ -57,7 +57,7 @@
value.contentType,
value.contentTypeLabel,
value.contentTypeClass,
value.html,
decodeURIComponent(value.html.replace(/\+/g, "%20")),
value.hasEditor);
return result;