mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
settings: Move success / failure indicator to the top
And scroll there on any error (previously, we would scroll only if we end up submitting the form). (imported from commit 63597c4da78ac92cd5c2314d6d174d178b1caaf3)
This commit is contained in:
@@ -765,6 +765,9 @@ $(function () {
|
||||
var settings_status = $('#settings-status');
|
||||
|
||||
function settings_change_error(message) {
|
||||
// Scroll to the top so the error message is visible.
|
||||
// We would scroll anyway if we end up submitting the form.
|
||||
viewport.scrollTop(0);
|
||||
settings_status.removeClass(status_classes)
|
||||
.addClass('alert-error')
|
||||
.text(message).stop(true).fadeTo(0,1);
|
||||
|
||||
Reference in New Issue
Block a user