remove current path from select list
This commit is contained in:
1 parent
f3327eb3aa
commit
70ba9d56ab
1 file changed
+5
@@ -601,6 +601,11 @@ $(function() {
|
||||
if(response.files && response.files.length > 0){
|
||||
self.folderList(["/"]);
|
||||
_.each(response.files, self.recursiveFolderList);
|
||||
if(self.moveSource().name === self.moveSource().path){
|
||||
self.folderList.remove("/" );
|
||||
} else {
|
||||
self.folderList.remove("/" + self.moveSource().path.replace("/" + self.moveSource().name,""));
|
||||
}
|
||||
}
|
||||
if(self.folderList().length > 0){
|
||||
self.moveDestination("");
|
||||
|
||||
Reference in new issue
Block a user