var moveFolder function id move to to to switch move case deleteFolder

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
var moveFolder = function (id, move, to) {
to = to || "";
switch (move) {
case 3:
deleteFolderById(id);
break;
case 2:
if (to) {
copyFolder(id, to);
deleteFolderById(id);
}
break;
case 1:
if (to) copyFolder(id, to);
break;
}