Skip to content

Commit

Permalink
Fix workflow interface drop to import
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Feb 26, 2019
1 parent bd25ff9 commit 14f3ce3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions client/galaxy/scripts/mvc/workflow/workflow.js
Expand Up @@ -195,13 +195,14 @@ const WorkflowListView = Backbone.View.extend({
},

events: {
dragleave: "unhighlightDropZone",
drop: "drop",
dragover: function(ev) {
$(".hidden_description_layer").addClass("dragover");
$(".menubutton").addClass("background-none");
ev.preventDefault();
}
dragover: "highlightDropZone",
dragleave: "unhighlightDropZone"
},

highlightDropZone: function(ev) {
$(".hidden_description_layer").addClass("dragover");
$(".menubutton").addClass("background-none");
ev.preventDefault();
},

unhighlightDropZone: function() {
Expand Down Expand Up @@ -272,6 +273,7 @@ const WorkflowListView = Backbone.View.extend({
this.searchWorkflow(this.$(".search-wf"), this.$(".workflow-search tr"), minQueryLength);
this.adjustActiondropdown();
this._showArgErrors();
this.$(".hidden_description_layer").get(0).addEventListener('drop', _.bind(this.drop, this));
return this;
},

Expand Down

0 comments on commit 14f3ce3

Please sign in to comment.