This commit is contained in:
		@@ -74,11 +74,68 @@
 | 
			
		||||
                        if(response.content == "ERROR_NOT_EXIST") {
 | 
			
		||||
                            
 | 
			
		||||
                            fileExplorer.innerHTML = fileExplorerError
 | 
			
		||||
                            const last_dir = document.getElementById("last_directory")
 | 
			
		||||
 | 
			
		||||
                            last_dir.addEventListener("click", () => {
 | 
			
		||||
 | 
			
		||||
                                var cdSplit = currentDir.value.split("/")
 | 
			
		||||
 | 
			
		||||
                                if(cdSplit.slice(-1) == "") {
 | 
			
		||||
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
 | 
			
		||||
                                } else {
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                                }
 | 
			
		||||
 | 
			
		||||
                               
 | 
			
		||||
                                currentDir.value = cdSplit.join("/")
 | 
			
		||||
 | 
			
		||||
                                if(currentDir.value == "") {
 | 
			
		||||
                                    currentDir.value = "/"
 | 
			
		||||
                                }
 | 
			
		||||
 | 
			
		||||
                                getDirectory(currentDir.value)
 | 
			
		||||
 | 
			
		||||
                              
 | 
			
		||||
                            })
 | 
			
		||||
                            console.log("DENY")
 | 
			
		||||
 | 
			
		||||
                        } else if(response.content == "ERROR_NOT_PERMITTED") {
 | 
			
		||||
                            
 | 
			
		||||
                            fileExplorer.innerHTML = '<div id="last_directory" class="fi_file"><p style="margin-left: 1vw;text-align:start;margin-bottom: 1vw !important;"><i class="fa fa-arrow-left"></i> Revenir au dossier parent</p></div>' +'<p style="text-align: start; padding: 1vw; color: rgb(255, 48, 48);">Vous n\'avez pas la permission de regarder ce dossier.</p>'
 | 
			
		||||
                            const last_dir = document.getElementById("last_directory")
 | 
			
		||||
 | 
			
		||||
                            last_dir.addEventListener("click", () => {
 | 
			
		||||
 | 
			
		||||
                                var cdSplit = currentDir.value.split("/")
 | 
			
		||||
 | 
			
		||||
                                if(cdSplit.slice(-1) == "") {
 | 
			
		||||
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
 | 
			
		||||
                                } else {
 | 
			
		||||
                                    cdSplit.pop()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
                                }
 | 
			
		||||
 | 
			
		||||
                               
 | 
			
		||||
                                currentDir.value = cdSplit.join("/")
 | 
			
		||||
 | 
			
		||||
                                if(currentDir.value == "") {
 | 
			
		||||
                                    currentDir.value = "/"
 | 
			
		||||
                                }
 | 
			
		||||
 | 
			
		||||
                                getDirectory(currentDir.value)
 | 
			
		||||
 | 
			
		||||
                              
 | 
			
		||||
                            })
 | 
			
		||||
                            
 | 
			
		||||
                            console.log("DENY")
 | 
			
		||||
                        
 | 
			
		||||
                        } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user