mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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
@@ -57,7 +57,7 @@
|
||||
value.contentType,
|
||||
value.contentTypeLabel,
|
||||
value.contentTypeClass,
|
||||
value.html,
|
||||
decodeURIComponent(value.html.replace(/\+/g, "%20")),
|
||||
value.hasEditor);
|
||||
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user