mirror of https://github.com/zulip/zulip.git
settings: Remove obsolete message_viewport.scrollTop() calls.
These date from long before the settings UI was restructured as an overlay. Now, instead of ensuring that error messages are visible, they just scroll the message feed incorrectly. Fixes #4810.
This commit is contained in:
parent
850519b314
commit
72720fcf2e
|
@ -11,16 +11,10 @@ exports.update_email = function (new_email) {
|
|||
};
|
||||
|
||||
function settings_change_error(message, xhr) {
|
||||
// Scroll to the top so the error message is visible.
|
||||
// We would scroll anyway if we end up submitting the form.
|
||||
message_viewport.scrollTop(0);
|
||||
ui_report.error(message, xhr, $('#account-settings-status').expectOne());
|
||||
}
|
||||
|
||||
function settings_change_success(message) {
|
||||
// Scroll to the top so the error message is visible.
|
||||
// We would scroll anyway if we end up submitting the form.
|
||||
message_viewport.scrollTop(0);
|
||||
ui_report.success(message, $('#account-settings-status').expectOne());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue