Add logic in preparation for move virtual folder endpoint
@@ -547,6 +547,11 @@ function bindFileBrowserItemEvents() {
var calls = [];
var callSources = [];
for (var i = 0; i < sources.length; i++) {
+ // Moving virtual folders uses its own endpoint
+ if (isVirtualFolder(sources[i].parentElement)) {
+ // TODO: add call to move virtual folders here
+ }
+ else {
var sourcePath = getCurrentPath().path.concat($(sources[i]).text());
var destPath = destFolderPath.concat($(sources[i]).text());
@@ -554,6 +559,7 @@ function bindFileBrowserItemEvents() {
callSources.push(sourcePath.join('/'));
}
}
+ }
// use same entry point as cut/paste
calls.push(move_to_folder_ajax_submit(resID, callSources, destFolderPath.join('/')));
