mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-12 17:23:15 +00:00
revert unwanted whitespace changes automatically made by code editor
This commit is contained in:
parent
17c9768b02
commit
355fb67a92
1 changed files with 6 additions and 6 deletions
|
|
@ -353,7 +353,7 @@ $(function() {
|
|||
var $this = $(this);
|
||||
|
||||
var previewWindow = window.open($this.data('placeholder'), $this.data('windowname'));
|
||||
|
||||
|
||||
if(/MSIE/.test(navigator.userAgent)){
|
||||
submitPreview.call($this, false);
|
||||
} else {
|
||||
|
|
@ -370,22 +370,22 @@ $(function() {
|
|||
success: function(data, textStatus, request) {
|
||||
if (request.getResponseHeader('X-Wagtail-Preview') == 'ok') {
|
||||
var pdoc = previewWindow.document;
|
||||
|
||||
|
||||
if(enhanced){
|
||||
var frame = pdoc.getElementById('preview-frame');
|
||||
|
||||
frame = frame.contentWindow || frame.contentDocument.document || frame.contentDocument;
|
||||
frame.document.open();
|
||||
frame.document.write(data);
|
||||
frame.document.write(data);
|
||||
frame.document.close();
|
||||
|
||||
var hideTimeout = setTimeout(function(){
|
||||
pdoc.getElementById('loading-spinner-wrapper').className += 'remove';
|
||||
clearTimeout(hideTimeout);
|
||||
}) // just enough to give effect without adding discernible slowness
|
||||
}) // just enough to give effect without adding discernible slowness
|
||||
} else {
|
||||
pdoc.open();
|
||||
pdoc.write(data);
|
||||
pdoc.write(data);
|
||||
pdoc.close()
|
||||
}
|
||||
} else {
|
||||
|
|
@ -409,6 +409,6 @@ $(function() {
|
|||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue