1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

[dir view] drag & drop: modified highlight effect

This commit is contained in:
llj
2017-01-04 13:51:38 +08:00
parent 0075764bae
commit 4d4762b1af

View File

@@ -169,7 +169,7 @@ define([
if (!this.model.get('is_dir')) {
return false;
}
this.$('.dir-link').removeClass('normal');
this.$el.css({'background-color':'#f8f8f8'});
},
itemDragleave: function(e) {
@@ -179,7 +179,7 @@ define([
if (!this.model.get('is_dir')) {
return false;
}
this.$('.dir-link').addClass('normal');
this.$el.removeAttr('style');
},
itemDrop: function(e) {
@@ -189,7 +189,7 @@ define([
if (!this.model.get('is_dir')) {
return false;
}
this.$('.dir-link').addClass('normal');
this.$el.removeAttr('style');
var ev = e.originalEvent;
ev.preventDefault();