aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/breadcrumb.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/breadcrumb.js')
-rw-r--r--apps/files/js/breadcrumb.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js
index 364475e4a4f..58ac9924ef7 100644
--- a/apps/files/js/breadcrumb.js
+++ b/apps/files/js/breadcrumb.js
@@ -39,6 +39,8 @@
}
if (options.onDrop) {
this.onDrop = options.onDrop;
+ this.onOver = options.onOver;
+ this.onOut = options.onOut;
}
if (options.getCrumbUrl) {
this.getCrumbUrl = options.getCrumbUrl;
@@ -60,6 +62,8 @@
breadcrumbs: [],
onClick: null,
onDrop: null,
+ onOver: null,
+ onOut: null,
/**
* Sets the directory to be displayed as breadcrumb.
@@ -127,6 +131,8 @@
if (this.onDrop) {
this.$el.find('.crumb:not(.last)').droppable({
drop: this.onDrop,
+ over: this.onOver,
+ out: this.onOut,
tolerance: 'pointer'
});
}