Fix dragover highlighting for composite dataset uploader

This commit is contained in:
guerler
2018-12-20 15:07:50 -05:00
parent 34ada99915
commit 8f10178e43
2 changed files with 5 additions and 2 deletions
@@ -38,10 +38,10 @@ export default Backbone.View.extend({
// build upload functions
this.uploadinput = this.$el.uploadinput({
ondragover: function() {
self.model.get("enabled") && self.$el.addClass("warning");
self.model.get("enabled") && self.$el.addClass("alert-success");
},
ondragleave: function() {
self.$el.removeClass("warning");
self.$el.removeClass("alert-success");
},
onchange: function(files) {
if (self.model.get("status") != "running" && files && files.length > 0) {
+3
View File
@@ -279,6 +279,9 @@
td {
padding: 0.5rem;
}
.alert-success {
background: $brand-success !important;
}
}
.upload-settings {