Change information overlay to use toggle component.

This switches from a custom tab interface to the toggle component
layout.
This commit is contained in:
brockwhittaker
2017-01-30 11:55:39 -08:00
committed by Tim Abbott
parent 47a3ce2d35
commit 2ef8e425d1
3 changed files with 20 additions and 27 deletions

View File

@@ -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"),