(web) New menu option to move mailboxes

Fixes #644
Fixes #3511
Fixes #4479
This commit is contained in:
Francis Lachapelle committed 2018-07-27 15:21:35 -04:00
1 parent 7e75c8be45
commit 894769ef6f
5 files changed
+177 -2

No files matched your search

@@ -296,6 +296,37 @@
});
};
this.isParentOf = function(path) {
var findChildren;
// Local recursive function
findChildren = function(parent) {
if (parent.children && parent.children.length > 0) {
for (var i = 0, found = false; !found && i < parent.children.length; i++) {
var o = parent.children[i];
if (o.children && o.children.length > 0) {
if (findChildren(o)) {
return true;
}
}
else if (o.path == path) {
return true;
}
}
}
else {
return (parent.path == path);
}
};
return findChildren(this.folder);
};
this.moveFolder = function(path) {
this.folder.$move(path);
mdPanelRef.close();
};
} // MenuController