mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
Change information overlay to use toggle component.
This switches from a custom tab interface to the toggle component layout.
This commit is contained in:
committed by
Tim Abbott
parent
47a3ce2d35
commit
2ef8e425d1
@@ -280,6 +280,24 @@ exports.lightbox = function (data) {
|
||||
popovers.hide_all();
|
||||
};
|
||||
|
||||
$(document).ready(function () {
|
||||
var info_overlay_toggle = components.toggle({
|
||||
name: "info-overlay-toggle",
|
||||
selected: 0,
|
||||
values: [
|
||||
{ label: "Keyboard Shortcuts" },
|
||||
{ label: "Message Formatting" },
|
||||
{ label: "Search Help" },
|
||||
],
|
||||
callback: function () {
|
||||
|
||||
}
|
||||
}).get();
|
||||
|
||||
$(".informational-overlays .overlay-tabs")
|
||||
.append($(info_overlay_toggle).addClass("large"));
|
||||
});
|
||||
|
||||
exports.show_info_overlay = function (target) {
|
||||
var el = {
|
||||
tabs: $(".informational-overlays .tab"),
|
||||
|
||||
Reference in New Issue
Block a user