Select folder, show root

This commit is contained in:
Ruud
2012-05-25 23:40:54 +02:00
parent 30ef0e45e0
commit 7fa06eade4
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -702,7 +702,7 @@ Option.Directory = new Class({
var v = self.input.get('text');
var previous_dir = self.getParentDir();
if(previous_dir != v && previous_dir.length > 1){
if(previous_dir != v && previous_dir.length >= 1 && !json.is_root){
self.back_button.set('data-value', previous_dir)
self.back_button.set('html', '« '+self.getCurrentDirname(previous_dir))
self.back_button.show()