Fix creation page not displayed in pad and slide

pull/1/head
yflory 7 years ago
parent 4e46d0daa5
commit c269929319

@ -6,12 +6,9 @@
z-index: 100000001 !important; z-index: 100000001 !important;
} }
#cp-creation-container { #cp-creation-container {
//position: fixed; position: absolute;
z-index: 100000000; // #loading * 10 z-index: 100000000; // #loading * 10
//top: 0px; top: 0px;
//bottom: 0px;
//left: 0px;
//right: 0px;
background: @colortheme_loading-bg; background: @colortheme_loading-bg;
color: @colortheme_loading-color; color: @colortheme_loading-color;
display: flex; display: flex;

@ -0,0 +1,18 @@
@import (once) "./toolbar.less";
@import (once) './fileupload.less';
@import (once) './alertify.less';
@import (once) './tokenfield.less';
@import (once) './creation.less';
.framework_main(@bg-color, @warn-color, @color) {
.toolbar_main(
@bg-color: @bg-color,
@warn-color: @warn-color,
@color: @color
);
.fileupload_main();
.alertify_main();
.tokenfield_main();
.creation_main();
}

@ -1,20 +1,13 @@
@import (once) "../../customize/src/less2/include/browser.less"; @import (once) "../../customize/src/less2/include/browser.less";
@import (once) "../../customize/src/less2/include/toolbar.less";
@import (once) "../../customize/src/less2/include/markdown.less"; @import (once) "../../customize/src/less2/include/markdown.less";
@import (once) '../../customize/src/less2/include/fileupload.less'; @import (once) "../../customize/src/less2/include/framework.less";
@import (once) '../../customize/src/less2/include/alertify.less';
@import (once) '../../customize/src/less2/include/tokenfield.less';
@import (once) '../../customize/src/less2/include/creation.less';
.toolbar_main(
.framework_main(
@bg-color: @colortheme_code-bg, @bg-color: @colortheme_code-bg,
@warn-color: @colortheme_code-warn, @warn-color: @colortheme_code-warn,
@color: @colortheme_code-color @color: @colortheme_code-color
); );
.fileupload_main();
.alertify_main();
.tokenfield_main();
.creation_main();
// body // body
&.cp-app-code { &.cp-app-code {

@ -278,7 +278,7 @@ define([
} }
} }
if (newPad) { if (newPad && !AppConfig.displayCreationScreen) {
common.openTemplatePicker(); common.openTemplatePicker();
} }
}; };

@ -617,7 +617,6 @@ define([
updateMeta(); updateMeta();
var rtConfig = {}; var rtConfig = {};
console.log(edPublic);
if (data.owned) { if (data.owned) {
//rtConfig.owners = [edPublic]; //rtConfig.owners = [edPublic];
} }
@ -636,7 +635,6 @@ define([
return; return;
} }
// Start realtime outside the iframe and callback // Start realtime outside the iframe and callback
console.log(data);
startRealtime(rtConfig); startRealtime(rtConfig);
cb(); cb();
}); });

@ -1,8 +1,6 @@
@import (once) "../../customize/src/less2/include/toolbar.less"; @import (once) "../../customize/src/less2/include/framework.less";
@import (once) '../../customize/src/less2/include/alertify.less';
@import (once) '../../customize/src/less2/include/tokenfield.less';
.toolbar_main( .framework_main(
@bg-color: @colortheme_pad-bg, @bg-color: @colortheme_pad-bg,
@warn-color: @colortheme_pad-warn, @warn-color: @colortheme_pad-warn,
@color: @colortheme_pad-color @color: @colortheme_pad-color

@ -1,20 +1,14 @@
@import (once) "../../customize/src/less2/include/browser.less"; @import (once) "../../customize/src/less2/include/browser.less";
@import (once) "../../customize/src/less2/include/toolbar.less";
@import (once) "../../customize/src/less2/include/markdown.less"; @import (once) "../../customize/src/less2/include/markdown.less";
@import (once) '../../customize/src/less2/include/fileupload.less';
@import (once) '../../customize/src/less2/include/alertify.less';
@import (once) "../../customize/src/less2/include/mediatag.less"; @import (once) "../../customize/src/less2/include/mediatag.less";
@import (once) '../../customize/src/less2/include/tokenfield.less'; @import (once) "../../customize/src/less2/include/framework.less";
.mediatag_base(); .mediatag_base();
.toolbar_main( .framework_main(
@bg-color: @colortheme_slide-bg, @bg-color: @colortheme_slide-bg,
@warn-color: @colortheme_slide-warn, @warn-color: @colortheme_slide-warn,
@color: @colortheme_slide-color @color: @colortheme_slide-color
); );
.fileupload_main();
.alertify_main();
.tokenfield_main();
// body // body
font-size: unset; font-size: unset;

Loading…
Cancel
Save