Enable templates in pad

pull/1/head
yflory 7 years ago
parent 4108520d20
commit 204e45dfae

@ -6,7 +6,7 @@
.cp-icon-color-slide { color: @colortheme_slide-bg; } .cp-icon-color-slide { color: @colortheme_slide-bg; }
.cp-icon-color-poll { color: @colortheme_poll-bg; } .cp-icon-color-poll { color: @colortheme_poll-bg; }
.cp-icon-color-file { color: @colortheme_file-bg; } .cp-icon-color-file { color: @colortheme_file-bg; }
.cp-icon-color-friends { color: @colortheme_friends-bg; } .cp-icon-color-contacts { color: @colortheme_friends-bg; }
.cp-icon-color-whiteboard { color: @colortheme_whiteboard-bg; } .cp-icon-color-whiteboard { color: @colortheme_whiteboard-bg; }
.cp-icon-color-drive { color: @colortheme_drive-bg; } .cp-icon-color-drive { color: @colortheme_drive-bg; }
.cp-icon-color-settings { color: @colortheme_settings-bg; } .cp-icon-color-settings { color: @colortheme_settings-bg; }

@ -32,7 +32,6 @@
height: 100%; height: 100%;
border: 0; border: 0;
} }
</style> </style>
</head> </head>
<body> <body>

@ -2,9 +2,11 @@
@import (once) '../../customize/src/less2/include/modal.less'; @import (once) '../../customize/src/less2/include/modal.less';
@import (once) '../../customize/src/less2/include/icon-colors.less'; @import (once) '../../customize/src/less2/include/icon-colors.less';
@import (once) '../../customize/src/less2/include/fileupload.less'; @import (once) '../../customize/src/less2/include/fileupload.less';
@import (once) '../../customize/src/less2/include/alertify.less';
.iconColors_main(); .iconColors_main();
.fileupload_main(); .fileupload_main();
.alertify_main();
#cp-filepicker-dialog { #cp-filepicker-dialog {
display: none; display: none;

@ -24,6 +24,14 @@
padding:0; padding:0;
overflow:hidden; overflow:hidden;
} }
#sbox-filePicker-iframe {
position: fixed;
top:0; left:0;
bottom:0; right:0;
width:100%;
height: 100%;
border: 0;
}
</style> </style>
</head> </head>
<body> <body>

@ -668,7 +668,12 @@ define([
initializing = false; initializing = false;
if (readOnly) { return; } if (readOnly) { return; }
//TODO UserList.getLastName(toolbar.$userNameButton, newPad);
if (newPad) {
common.openTemplatePicker(common);
}
onLocal(); onLocal();
editor.focus(); editor.focus();
if (newPad) { if (newPad) {

Loading…
Cancel
Save