mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
This focuses the body content of the informational overlay after going to it from "?" so that you can use up and down arrows to then scroll the content easily. Fixes: #4480.
24 lines
384 B
JavaScript
24 lines
384 B
JavaScript
var ui_state = (function () {
|
|
|
|
var exports = {};
|
|
|
|
exports.home_tab_obscured = function () {
|
|
if ($('.overlay.show').length > 0) {
|
|
return 'modal';
|
|
}
|
|
|
|
return false;
|
|
};
|
|
|
|
exports.is_info_overlay = function () {
|
|
return ($(".informational-overlays").hasClass("show"));
|
|
};
|
|
|
|
return exports;
|
|
|
|
}());
|
|
|
|
if (typeof module !== 'undefined') {
|
|
module.exports = ui_state;
|
|
}
|