mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-06 01:09:21 +00:00
(web) New menu option to move mailboxes
Fixes #644 Fixes #3511 Fixes #4479
This commit is contained in:
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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user