mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #4967 from IgorNadj/patch-2
Add special flag to CMS preview requests
This commit is contained in:
commit
2fb193cf7f
@ -453,6 +453,9 @@
|
|||||||
this.setCurrentStateName(null);
|
this.setCurrentStateName(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mark url as a preview url so it can get special treatment
|
||||||
|
url += ((url.indexOf('?') === -1) ? '?' : '&') + 'CMSPreview=1';
|
||||||
|
|
||||||
// If this preview panel isn't visible at the moment, delay loading the URL until it (maybe) is later
|
// If this preview panel isn't visible at the moment, delay loading the URL until it (maybe) is later
|
||||||
if (this.is('.column-hidden')) {
|
if (this.is('.column-hidden')) {
|
||||||
this.setPendingURL(url);
|
this.setPendingURL(url);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user