This is a major change to draft internals. Previously there were quite a few cases where the draft system would say "draft saved", when in fact we just skipped saving. This commit ensures the draft system deals with draft ownership handover in a predictable way. For example: - Window 1 editing draft - Window 2 editing same draft at the same time Previously we would allow window 1 and 2 to just fight on the same draft each window overwriting the same draft over an over. This commit introduces an ownership concept where either window 1 or 2 win and user is prompted on the loser window to reload screen to correct the issue This also corrects edge cases where a user could have multiple browser windows open and posts in 1 window, later to post in the second window. Previously drafts would break in the second window, this corrects it. |
||
|---|---|---|
| .. | ||
| action-summary.js.es6 | ||
| archetype.js.es6 | ||
| badge-grouping.js.es6 | ||
| badge.js.es6 | ||
| category-list.js.es6 | ||
| category.js.es6 | ||
| composer.js.es6 | ||
| draft.js.es6 | ||
| group-history.js.es6 | ||
| group.js.es6 | ||
| input-validation.js.es6 | ||
| invite.js.es6 | ||
| live-post-counts.es6 | ||
| login-method.js.es6 | ||
| model.js.es6 | ||
| nav-item.js.es6 | ||
| permission-type.js.es6 | ||
| post-action-type.js.es6 | ||
| post-stream.js.es6 | ||
| post.js.es6 | ||
| rest.js.es6 | ||
| result-set.js.es6 | ||
| reviewable-history.js.es6 | ||
| reviewable.js.es6 | ||
| session.js.es6 | ||
| site.js.es6 | ||
| static-page.js.es6 | ||
| store.js.es6 | ||
| tag-group.js.es6 | ||
| tag.js.es6 | ||
| topic-details.js.es6 | ||
| topic-list.js.es6 | ||
| topic-timer.js.es6 | ||
| topic-tracking-state.js.es6 | ||
| topic.js.es6 | ||
| trust-level.js.es6 | ||
| user-action-group.js.es6 | ||
| user-action-stat.js.es6 | ||
| user-action.js.es6 | ||
| user-badge.js.es6 | ||
| user-draft.js.es6 | ||
| user-drafts-stream.js.es6 | ||
| user-posts-stream.js.es6 | ||
| user-stream.js.es6 | ||
| user.js.es6 | ||