#1734 closed enhancement (fixed)
Replace alert() messages in form validation with something better-lookin
Reported by: | Nicklas Nordborg | Owned by: | Nicklas Nordborg |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.3 |
Component: | web | Version: | |
Keywords: | Cc: |
Description
If an error is detected when validating a form before saving it an error message is usually displayed in a popup using the alert()
function. Nothing wrong with that, but we can do a bit better with modern browsers. See the attached image for an example.
Attachments (1)
Change History (6)
Changed 11 years ago by
comment:1 Changed 11 years ago by
Owner: | changed from everyone to Nicklas Nordborg |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
(In [6176]) Fixes #1734: Replace alert() messages in form validation with something better-looking
Should be fixed in all other dialogs now, and also in some list pages and other places.
Added support for putting the notification to the right of the element. Use: Forms.showNotification(element, msg, null, 'pointer-left')
comment:4 Changed 11 years ago by
comment:5 Changed 9 years ago by
Note: See
TracTickets for help on using
tickets.
(In [6175]) References #1734: Replace alert() messages in form validation with something better-looking
Implemented a function for this:
Forms.showNotification
which should replace all calls to alert(). The function will automatically focus and select the specified form field if possible. The notification automatically disappears when the user starts typing or when the field loses focus.The setting dialogs in the "BASE" menu and the calendar popup has been used for testing.