mirror of https://gitlab.com/tildes/tildes.git
Browse Source
Show errors from Intercooler <button> requests
Show errors from Intercooler <button> requests
Previously, error messages were only shown inside <form> elements. If a button hit an error (such as a 403 when trying to vote on a comment that was deleted after page load), the button simply wouldn't work with no indication of why. This adds the error message into the <menu> containing the buttons, and involved some reworking of the relevant JS and CSS.merge-requests/110/head
7 changed files with 49 additions and 41 deletions
-
5tildes/scss/modules/_btn.scss
-
6tildes/scss/modules/_form.scss
-
4tildes/scss/modules/_text.scss
-
8tildes/scss/themes/_theme_base.scss
-
2tildes/static/js/behaviors/theme-selector.js
-
63tildes/static/js/scripts.js
-
2tildes/tildes/templates/includes/new_topic_form.jinja2
Write
Preview
Loading…
Cancel
Save
Reference in new issue