Working filebrowser in Windows

This commit is contained in:
Ruud committed 2012-01-08 14:42:22 +01:00
1 parent 69dbfd7c63
commit c518336cf8
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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(){