Changed post drafts to maintain a list of the names of uploading files instead of just a count

Этот коммит содержится в:
hmhealey
2015-08-07 16:24:13 -04:00
родитель e1009fa7fb
Коммит 20d755f3dd
5 изменённых файлов: 134 добавлений и 108 удалений

Просмотреть файл

@@ -155,7 +155,7 @@ var PostStore = assign({}, EventEmitter.prototype, {
clearDraftUploads: function clearDraftUploads() {
BrowserStore.actionOnItemsWithPrefix('draft_', function clearUploads(key, value) {
if (value) {
value.uploadsInProgress = 0;
value.uploadsInProgress = [];
BrowserStore.setItem(key, value);
}
});
@@ -163,7 +163,7 @@ var PostStore = assign({}, EventEmitter.prototype, {
clearCommentDraftUploads: function clearCommentDraftUploads() {
BrowserStore.actionOnItemsWithPrefix('comment_draft_', function clearUploads(key, value) {
if (value) {
value.uploadsInProgress = 0;
value.uploadsInProgress = [];
BrowserStore.setItem(key, value);
}
});