revert unwanted whitespace changes automatically made by code editor

This commit is contained in:
Sebastian Spiegel 2014-11-19 15:49:16 +01:00
parent 17c9768b02
commit 355fb67a92

View file

@ -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() {
});
}
});
});