Attaches fix

This commit is contained in:
George Berezhnoy 2017-05-23 17:10:48 +03:00
parent 665523a423
commit ba88cf0ce9
2 changed files with 6 additions and 3 deletions

View file

@ -53,6 +53,7 @@
.cdx-attaches__extension,
.cdx-attaches__size {
color: #8f9298;
white-space: nowrap;
}
.cdx-attaches__extension::after {

View file

@ -21,7 +21,8 @@ var cdxAttaches = function () {
* Private methods and props
*/
var KBYTE = 1024;
var KBYTE = 1024,
fileWrapper = null;
/**
* Default config
@ -217,7 +218,7 @@ var cdxAttaches = function () {
upload.current = progress;
codex.editor.content.switchBlock(codex.editor.content.currentNode, progress, 'attaches');
codex.editor.content.switchBlock(fileWrapper, progress, 'attaches');
},
@ -350,7 +351,8 @@ var cdxAttaches = function () {
if (!data) {
return ui.defaultForm();
fileWrapper = ui.defaultForm();
return fileWrapper;
}