This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse
Joe 06ae9229e8
UX: Skip length check on reply drafts (#17408)
We don't count quote characters as part of the reply length.

We don't save drafts if the reply length is less than the min_post_length site setting.

If you start a reply that only contains a bunch of quotes with the intent to continue later, you get no draft.

This PR fixes that.

Note that we still don't save drafts if the composer is completely empty or if you're composing a new topic. This only affects replies.

This PR only changes the behavior if the reply composer contains something regardless of whether that something is a quote or not and ignores the min_post_length site setting.
2022-07-10 13:54:40 +08:00
..
app UX: Skip length check on reply drafts (#17408) 2022-07-10 13:54:40 +08:00
config DEV: Disable RAISE_ON_DEPRECATION (#17351) 2022-07-06 11:56:16 +08:00
lib DEV: Pass static scripts through Ember CLI (#17373) 2022-07-08 10:13:46 +01:00
public/assets/scripts FIX: Defer scripts on theme-tests route (#17171) 2022-06-21 12:44:31 +08:00
scripts DEV: Pass static scripts through Ember CLI (#17373) 2022-07-08 10:13:46 +01:00
tests UX: Skip length check on reply drafts (#17408) 2022-07-10 13:54:40 +08:00
.ember-cli REFACTOR: Sync up master with changes for Ember-CLI (#11671) 2021-01-12 10:13:21 -05:00
.npmrc DEV: Prevent npm usage (#13945) 2021-08-04 22:04:58 +02:00
ember-cli-build.js DEV: Pass static scripts through Ember CLI (#17373) 2022-07-08 10:13:46 +01:00
package.json DEV: Update sass (#17349) 2022-07-06 10:35:55 +02:00
testem.js DEV: Ensure ember-cli rake theme:qunit works with CSP enabled (#16541) 2022-04-22 16:59:45 +01:00