mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove trackster related legacy panel handling
This commit is contained in:
@@ -74,7 +74,6 @@ export function chart(options) {
|
||||
}
|
||||
|
||||
export { initMasthead } from "components/Masthead/initMasthead";
|
||||
export { panelManagement } from "onload/globalInits/panelManagement";
|
||||
export { mountMakoTags } from "components/Tags";
|
||||
export { mountWorkflowEditor } from "components/Workflow/Editor/mount";
|
||||
export { mountPageEditor } from "components/PageEditor/mount";
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
/**
|
||||
* Panel management code transplanted from base.mako
|
||||
* TODO: figure out when these functions fire
|
||||
*
|
||||
* @param {} panelConfig
|
||||
*/
|
||||
export function panelManagement(panelConfig) {
|
||||
console.log("panelManagement");
|
||||
console.log("(looks like it's assinging some global handlers to window to manage the left and right panel views?)");
|
||||
|
||||
const { left_panel, right_panel, rightPanelSelector, leftPanelSelector } = panelConfig;
|
||||
|
||||
if (left_panel) {
|
||||
var lp = new window.bundleEntries.panels.LeftPanel({
|
||||
el: leftPanelSelector,
|
||||
});
|
||||
window.force_left_panel = function (x) {
|
||||
console.log("window.force_left_panel fired");
|
||||
lp.force_panel(x);
|
||||
};
|
||||
}
|
||||
|
||||
if (right_panel) {
|
||||
var rp = new window.bundleEntries.panels.RightPanel({
|
||||
el: rightPanelSelector,
|
||||
});
|
||||
window.handle_minwidth_hint = function (x) {
|
||||
console.log("window.handle_minwidth_hint", x);
|
||||
rp.handle_minwidth_hint(x);
|
||||
};
|
||||
window.force_right_panel = function (x) {
|
||||
console.log("window.force_right_panel", x);
|
||||
rp.force_panel(x);
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -138,14 +138,6 @@ export class TracksterUI extends Backbone.Model {
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
icon_class: "bookmarks",
|
||||
title: _l("Bookmarks"),
|
||||
on_click: () => {
|
||||
// HACK -- use style to determine if panel is hidden and hide/show accordingly.
|
||||
window.force_right_panel($("div#right").css("right") == "0px" ? "hide" : "show");
|
||||
},
|
||||
},
|
||||
{
|
||||
icon_class: "globe",
|
||||
title: _l("Circster"),
|
||||
@@ -395,9 +387,6 @@ export class TracksterUIView extends Backbone.View {
|
||||
this.ui.view.resize_window();
|
||||
});
|
||||
|
||||
// hide right panel
|
||||
window.force_right_panel("hide");
|
||||
|
||||
// check if id is available
|
||||
if (window.galaxy_config.app.id) {
|
||||
this.view_existing();
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
// "late javascripts"
|
||||
config.addInitialization(function() {
|
||||
console.log("base/base_panels.mako, panel init");
|
||||
window.bundleEntries.panelManagement(panelConfig);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@@ -197,7 +197,6 @@
|
||||
|
||||
config.addInitialization(function() {
|
||||
console.log("base/base_panels.mako, panel init");
|
||||
window.bundleEntries.panelManagement(panelConfig);
|
||||
});
|
||||
|
||||
config.addInitialization(function() {
|
||||
|
||||
Reference in New Issue
Block a user