[openstreetmap/openstreetmap-website] Added bootstrap alert when body preview is empty (PR #5023)
Nenad Vujicic
notifications at github.com
Fri Jul 26 15:41:55 UTC 2024
PR is alternative to #4894 for displaying indicator, using bootstrap alerts, if (message, diary entry, diary entry comment) body is empty and user selects Preview button.
Fixes #3748. Added check to richtext.js to detect if (message, diary entry, diary entry comment) body is empty, and if positive, inserts alert-danger "Nothing to preview!" at the beginning of content section.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/5023
-- Commit Summary --
* Added bootstrap alert when body preview is empty
-- File Changes --
M app/assets/javascripts/richtext.js (14)
M config/locales/en.yml (1)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/5023.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5023.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5023
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5023 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240726/e17aac6f/attachment.htm>
More information about the rails-dev
mailing list