mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
@@ -491,7 +491,7 @@ class DirentListItem extends React.Component {
|
||||
};
|
||||
|
||||
onItemDragStart = (e) => {
|
||||
if (Utils.isIEBrower() || !this.state.canDrag) {
|
||||
if (Utils.isIEBrowser() || !this.state.canDrag) {
|
||||
return false;
|
||||
}
|
||||
e.dataTransfer.effectAllowed = 'move';
|
||||
@@ -521,7 +521,7 @@ class DirentListItem extends React.Component {
|
||||
};
|
||||
|
||||
onItemDragEnter = (e) => {
|
||||
if (Utils.isIEBrower() || !this.state.canDrag) {
|
||||
if (Utils.isIEBrowser() || !this.state.canDrag) {
|
||||
return false;
|
||||
}
|
||||
if (this.props.dirent.type === 'dir') {
|
||||
@@ -531,7 +531,7 @@ class DirentListItem extends React.Component {
|
||||
};
|
||||
|
||||
onItemDragOver = (e) => {
|
||||
if (Utils.isIEBrower() || !this.state.canDrag) {
|
||||
if (Utils.isIEBrowser() || !this.state.canDrag) {
|
||||
return false;
|
||||
}
|
||||
if (e.dataTransfer.dropEffect === 'copy') {
|
||||
@@ -542,7 +542,7 @@ class DirentListItem extends React.Component {
|
||||
};
|
||||
|
||||
onItemDragLeave = (e) => {
|
||||
if (Utils.isIEBrower() || !this.state.canDrag) {
|
||||
if (Utils.isIEBrowser() || !this.state.canDrag) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -553,7 +553,7 @@ class DirentListItem extends React.Component {
|
||||
};
|
||||
|
||||
onItemDragDrop = (e) => {
|
||||
if (Utils.isIEBrower() || !this.state.canDrag) {
|
||||
if (Utils.isIEBrowser() || !this.state.canDrag) {
|
||||
return false;
|
||||
}
|
||||
this.setState({ isDropTipshow: false });
|
||||
|
@@ -513,7 +513,7 @@ class DirentListView extends React.Component {
|
||||
};
|
||||
|
||||
onTableDragEnter = (e) => {
|
||||
if (Utils.isIEBrower() || !this.canDrop) {
|
||||
if (Utils.isIEBrowser() || !this.canDrop) {
|
||||
return false;
|
||||
}
|
||||
this.enteredCounter++;
|
||||
@@ -526,7 +526,7 @@ class DirentListView extends React.Component {
|
||||
};
|
||||
|
||||
onTableDragOver = (e) => {
|
||||
if (Utils.isIEBrower() || !this.canDrop) {
|
||||
if (Utils.isIEBrowser() || !this.canDrop) {
|
||||
return false;
|
||||
}
|
||||
if (e.dataTransfer.dropEffect === 'copy') {
|
||||
@@ -537,7 +537,7 @@ class DirentListView extends React.Component {
|
||||
};
|
||||
|
||||
onTableDragLeave = (e) => {
|
||||
if (Utils.isIEBrower() || !this.canDrop) {
|
||||
if (Utils.isIEBrowser() || !this.canDrop) {
|
||||
return false;
|
||||
}
|
||||
this.enteredCounter--;
|
||||
@@ -547,7 +547,7 @@ class DirentListView extends React.Component {
|
||||
};
|
||||
|
||||
tableDrop = (e) => {
|
||||
if (Utils.isIEBrower() || !this.canDrop) {
|
||||
if (Utils.isIEBrowser() || !this.canDrop) {
|
||||
return false;
|
||||
}
|
||||
e.persist();
|
||||
|
Reference in New Issue
Block a user