Working filebrowser in Windows
This commit is contained in:
1 parent
69dbfd7c63
commit
c518336cf8
2 files changed
+5
-5
No files matched your search
@@ -604,7 +604,7 @@ Option.Directory = new Class({
|
||||
var v = self.input.get('text');
|
||||
var previous_dir = self.getParentDir();
|
||||
|
||||
if(previous_dir != v){
|
||||
if(previous_dir != v && previous_dir.length > 1){
|
||||
self.back_button.set('data-value', previous_dir)
|
||||
self.back_button.set('html', '« '+self.getCurrentDirname(previous_dir))
|
||||
self.back_button.show()
|
||||
@@ -668,7 +668,7 @@ Option.Directory = new Class({
|
||||
|
||||
var dir_split = dir.split(Api.getOption('path_sep'));
|
||||
|
||||
return dir_split[dir_split.length-2] || '/'
|
||||
return dir_split[dir_split.length-2] || Api.getOption('path_sep')
|
||||
},
|
||||
|
||||
getValue: function(){
|
||||
|
||||
Reference in new issue
Block a user