discourse/app/assets/javascripts
Sam Saffron c5e67726fd FIX: under some conditions draft would say it was saving when not
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.
2019-10-31 17:15:58 +11:00
..
admin FEATURE: Option to update user preferences of all users when default site setting changed. 2019-10-31 06:48:03 +05:30
admin-login REFACTOR: use const rather than var 2019-10-03 11:45:03 -07:00
discourse FIX: under some conditions draft would say it was saving when not 2019-10-31 17:15:58 +11:00
discourse-common Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
docs
ember-addons DEV: unpin Prettier version, apply to YAML files 2019-01-17 13:05:39 -05:00
locales FIX: Escape $ in translations before interpolating (#8100) 2019-09-16 13:52:49 -04:00
pretty-text Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
select-kit FIX: Prettier on importing mixin (#8270) 2019-10-30 15:13:48 -05:00
wizard Revert "Revert Ember.run refactors" 2019-10-30 09:48:24 -04:00
activate-account.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
admin.js.erb
application.js REFACTOR: Move `app-events:main` to `service:app-events` (#8152) 2019-10-04 10:06:08 -04:00
auto-redirect.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
deprecated.js
discourse-loader.js DEV: Import `Ember.on` from @ember/object/evented (#8268) 2019-10-30 17:05:27 -05:00
discourse-objects.js
discourse.js.es6 DEV: removes dead code (#8130) 2019-10-02 12:15:11 -04:00
embed-application.js.no-module.es6 FEATURE: Embed topics list on remote sites via Javascript API. (#8008) 2019-08-15 13:41:06 -04:00
ember-shim.js
ember_include.js.erb
ember_jquery.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
env.js FIX: attempts to fix an error with EXTEND_PROTOTYPES (#7067) 2019-02-26 11:04:05 +01:00
google-tag-manager.js.no-module.es6 DEV: transpile certain ES6 files without producing a module (#6460) 2018-10-09 09:18:23 +08:00
google-universal-analytics.js.no-module.es6 DEV: transpile certain ES6 files without producing a module (#6460) 2018-10-09 09:18:23 +08:00
main_include_admin.js
markdown-it-bundle.js FEATURE: Support `[description|attachment](upload://<short-sha>)` in MD take 2. 2019-05-29 09:26:32 +08:00
onpopstate-handler.js.no-module.es6 extract inline `onpopstate` handler on 404 page (#6613) 2018-11-15 13:35:38 -05:00
polyfills.js FIX: polyfills forEach support on NodeList for IE11 (#8213) 2019-10-18 12:27:51 +02:00
preload-application-data.js.no-module.es6 SECURITY: add rate limiting to anon JS error reporting 2019-08-20 11:29:11 +10:00
preload-store.js.es6 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
pretty-text-bundle.js FIX: Composer preview not caching inline onebox. 2019-06-11 09:14:53 +08:00
print-page.js CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
service-worker.js.erb DEV: Bump uglifyjs (#7834) 2019-10-09 10:02:49 -03:00
set-prototype-polyfill.js DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808) 2019-01-10 11:06:01 +01:00
template_include.js.erb
vendor.js DEV: Remove HTML parser from Tautologistics. (#7344) 2019-04-10 11:21:22 +02:00
wizard-application.js FIX: Wizard didn't load translations correctly 2018-09-05 15:14:09 +02:00
wizard-start.js.no-module.es6 CSP - extract all other inline JavaScripts (#6528) 2018-10-25 09:52:01 -04:00
wizard-vendor.js