fix preview mode class

pull/1/head
ansuz 7 years ago
parent 15db6b180c
commit b5b84f540e

@ -238,7 +238,7 @@ define([
if (data !== false) { if (data !== false) {
$previewContainer.show(); $previewContainer.show();
APP.$previewButton.addClass('active'); APP.$previewButton.addClass('active');
$codeMirror.removeClass('fullPage'); $codeMirror.removeClass('cp-app-code-fullpage');
} }
}); });
return; return;
@ -246,7 +246,7 @@ define([
APP.$previewButton.hide(); APP.$previewButton.hide();
$previewContainer.hide(); $previewContainer.hide();
APP.$previewButton.removeClass('active'); APP.$previewButton.removeClass('active');
$codeMirror.addClass('fullPage'); $codeMirror.addClass('cp-app-code-fullpage');
}; };
config.onInit = function (info) { config.onInit = function (info) {
@ -615,7 +615,7 @@ define([
SFCommon.create(waitFor(function (c) { APP.common = common = c; })); SFCommon.create(waitFor(function (c) { APP.common = common = c; }));
}).nThen(function (/*waitFor*/) { }).nThen(function (/*waitFor*/) {
CodeMirror = common.initCodeMirrorApp(null, CM); CodeMirror = common.initCodeMirrorApp(null, CM);
$('.CodeMirror').addClass('fullPage'); $('.CodeMirror').addClass('cp-app-code-fullpage');
editor = CodeMirror.editor; editor = CodeMirror.editor;
Cryptpad.onError(function (info) { Cryptpad.onError(function (info) {
if (info && info.type === "store") { if (info && info.type === "store") {

Loading…
Cancel
Save