Skip to content

Commit

Permalink
Strip unused function, cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Sep 19, 2018
1 parent 077f308 commit 3f29d32
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions client/galaxy/scripts/mvc/dataset/dataset-li-edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,12 +271,11 @@ var DatasetListItemEdit = _super.extend(
href: url,
classes: "visualization-link",
faIcon: "fa-bar-chart-o",
onclick: (ev) => {
onclick: ev => {
if (Galaxy.frame && Galaxy.frame.active) {
ev.preventDefault();
Galaxy.frame.add({ url: url, title: "Visualization" });
}
else if (Galaxy.router) {
} else if (Galaxy.router) {
ev.preventDefault();
Galaxy.router.push("visualizations", {
dataset_id: this.model.get("id")
Expand All @@ -287,20 +286,6 @@ var DatasetListItemEdit = _super.extend(
}
},

/** add scratchbook functionality to visualization links */
_addScratchBookFn: function($links) {
$links.click(ev => {
if (Galaxy.frame && Galaxy.frame.active) {
Galaxy.frame.add({
title: _l("Visualization"),
url: $(this).attr("href")
});
ev.preventDefault();
ev.stopPropagation();
}
});
},

//TODO: if possible move these to readonly view - but display the owner's tags/annotation (no edit)
/** Render the tags list/control */
_renderTags: function($where) {
Expand Down

0 comments on commit 3f29d32

Please sign in to comment.