summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-08 16:56:58 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-11-08 16:56:58 +0100
commit41210c8cf17a07add79e25149c37b23c0c30e35a (patch)
treecfdbd99d7b714c4d0e098721ad68e9c9d17c428e /apps
parent267b673ccb1e2d9da457310bb5fdf31edb2e9d67 (diff)
downloadnextcloud-server-41210c8cf17a07add79e25149c37b23c0c30e35a.tar.gz
nextcloud-server-41210c8cf17a07add79e25149c37b23c0c30e35a.zip
Add droppable ability to menu and icon switch. Fix colour
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files/css/files.scss4
-rw-r--r--apps/files/js/breadcrumb.js9
2 files changed, 10 insertions, 3 deletions
diff --git a/apps/files/css/files.scss b/apps/files/css/files.scss
index 1ef8ac0ef9e..c7d7ba45d91 100644
--- a/apps/files/css/files.scss
+++ b/apps/files/css/files.scss
@@ -732,9 +732,9 @@ table.dragshadow td.size {
margin-bottom: 2px;
}
-.canDrop,
+.breadcrumb .canDrop > a,
#filestable tbody tr.canDrop {
- background-color: rgba(255, 255, 140, 1);
+ background-color: rgb(179, 230, 255);
}
diff --git a/apps/files/js/breadcrumb.js b/apps/files/js/breadcrumb.js
index 4b6fc1c6ce5..526cada113a 100644
--- a/apps/files/js/breadcrumb.js
+++ b/apps/files/js/breadcrumb.js
@@ -183,13 +183,20 @@
// setup drag and drop
if (this.onDrop) {
- this.$el.find('.crumb:not(.last)').droppable({
+ this.$el.find('.crumb:not(:last-child):not(.crumbmenu), .crumblist:not(:last-child)').droppable({
drop: this.onDrop,
over: this.onOver,
out: this.onOut,
tolerance: 'pointer',
hoverClass: 'canDrop'
});
+ // Only toggle class to open the menu
+ this.$el.find('.crumb.crumbmenu').droppable({
+ over: this.onOver,
+ out: this.onOut,
+ tolerance: 'pointer',
+ hoverClass: 'canDrop'
+ });
}
// Menu is destroyed on every change, we need to init it
OC.registerMenu($('.crumbmenu'), $('.crumbmenu > .popovermenu'));