discourse/app/assets/javascripts
Roman Rizzi fbb1fb9270
FIX: Ensure slow mode duration is correctly edited and displayed. (#10945)
* FIX: Ensure slow mode duration is correctly edited and displayed.

This commit fixes a bug where you were forced to set hours, minutes, and seconds or you won't be able to set the slow mode. Also, the duration was not displayed correctly due to the seconds not being truncated.

Additionally, we'll always display the hours, minutes, and seconds inputs for clarity and remove the blue banner.

* Set slow mode modal tweaks.

Uses labels instead of placeholders.
Input fields only visible when custom option selected.
Replace "Custom Duration" with "Pick Duration".

Additionally, place the `Set slow mode` button at the bottom of the topic actions menu.

* Perform the slow_mode validation also on the client-side before saving trying to save the post. This way, the post won't be staged.
2020-10-20 06:52:03 -03:00
..
admin FIX: Error messages from editing user being swallowed (#10908) 2020-10-13 10:37:33 -05:00
confirm-new-email DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
discourse FIX: Ensure slow mode duration is correctly edited and displayed. (#10945) 2020-10-20 06:52:03 -03:00
discourse-common REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
docs DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
ember-addons DEV: Remove ember-addons (#9559) 2020-04-28 10:14:49 -04:00
locales DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
pretty-text FIX: empty highlighted_languages resulted in ["", "auto", "nohighlight"] (#10772) 2020-09-29 14:34:46 +02:00
select-kit FIX: disabled option for sk was not working correctly (#10900) 2020-10-13 11:31:07 +02:00
wizard REFACTOR: Import visit helper rather than using a global variable 2020-10-15 13:22:05 -04:00
activate-account.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
admin.js.erb
app-boot.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
application.js REFACTOR: Remove Discourse.__widget_helpers 2020-08-06 14:35:46 -04:00
auto-redirect.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
browser-detect.js Improve support for old browsers (#9515) 2020-04-29 21:40:21 +03:00
discourse-loader.js REFACTOR: Import visit helper rather than using a global variable 2020-10-15 13:22:05 -04:00
discourse-shims.js Create proper shim for xss library - second attempt 2020-09-15 10:42:51 -04:00
embed-application.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
ember_include.js.erb
ember_jquery.js Revert "Revert "DEV: Import MessageBus from message-bus-client instead of globals"" 2020-05-28 08:42:36 -04:00
env.js
google-tag-manager.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
google-universal-analytics.js Revert "FEATURE: Upgrade analytics.js to gtag.js (#10893)" (#10910) 2020-10-13 12:20:41 -05:00
handlebars-shim.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
main_include_admin.js REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
markdown-it-bundle.js REFACTOR: Do not rely on module order for discourse-markdown loading 2020-09-18 13:31:55 -04:00
onpopstate-handler.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
polyfills.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
pretty-text-bundle.js Create proper shim for xss library - second attempt 2020-09-15 10:42:51 -04:00
print-page.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
service-worker.js.erb
set-prototype-polyfill.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
start-discourse.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
template_include.js DEV: Support for import Handlebars from 'handlebars'; (#9600) 2020-04-30 16:41:02 -04:00
test-shims.js REFACTOR: Continue to converge on what Ember CLI wants us to do 2020-10-16 10:53:13 -04:00
vendor.js REFACTOR: Remove $.cookie in favor of a local library based on it (#10548) 2020-08-27 14:07:51 -04:00
widget-runtime.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
wizard-application.js Revert "Revert "Merge branch 'master' of https://github.com/discourse/discourse"" 2020-05-23 00:56:13 -04:00
wizard-shims.js FIX: adds shims for popper in wizard (#10658) 2020-09-14 12:33:14 -04:00
wizard-start.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
wizard-vendor.js FIX: adds shims for popper in wizard (#10658) 2020-09-14 12:33:14 -04:00