mirror of https://github.com/xwiki-labs/cryptpad
Fix slides colors reset
This commit is contained in:
parent
cc0f89ac4a
commit
b8b2373512
|
@ -357,7 +357,7 @@ define([
|
|||
};
|
||||
var updateLocalColors = function (text, back) {
|
||||
updateColors(text, back);
|
||||
var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadata()));
|
||||
var metadata = JSON.parse(JSON.stringify(metadataMgr.getMetadataLazy()));
|
||||
if (backColor) { metadata.backColor = backColor; }
|
||||
if (textColor) { metadata.color = textColor; }
|
||||
metadataMgr.updateMetadata(metadata);
|
||||
|
@ -527,8 +527,6 @@ define([
|
|||
|
||||
if (newPad) {
|
||||
colors.updateLocalColors('#000', '#FFF');
|
||||
} else {
|
||||
colors.updateLocalColors('#FFF', '#000');
|
||||
}
|
||||
|
||||
CodeMirror.setMode('markdown', function () { });
|
||||
|
|
Loading…
Reference in New Issue