mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
bot settings: Scroll to bottom after showing bot_error.
Fixes #9868. The error went unnoticed as the error remains hidden below due to the scrollable div.
This commit is contained in:
committed by
Tim Abbott
parent
d07f5eef22
commit
17cbafe0e0
@@ -44,6 +44,8 @@ exports.bot_error = function (bot_id, xhr) {
|
||||
var bot_error_div = bot_info.find('.bot_error');
|
||||
bot_error_div.text(JSON.parse(xhr.responseText).msg);
|
||||
bot_error_div.show();
|
||||
var bot_box = bot_info.closest('.bot-information-box');
|
||||
bot_box.scrollTop(bot_box[0].scrollHeight - bot_box[0].clientHeight);
|
||||
};
|
||||
|
||||
function add_bot_row(info) {
|
||||
|
||||
Reference in New Issue
Block a user