- Add check to make sure path_widget is there before using it

- Remove extra change stuff
This commit is contained in:
Nathan Gray 2013-10-04 10:09:21 +00:00
parent 5d1a8e16ee
commit 7c3d0776dd
2 changed files with 3 additions and 2 deletions

View File

@ -440,7 +440,6 @@ app.filemanager = AppJS.extend(
break;
}
this.path_widget.set_value(_dir);
this.path_widget.change();
},
/**
@ -622,6 +621,8 @@ app.filemanager = AppJS.extend(
set_readonly: function(_path, _ro)
{
//alert('set_readonly("'+_path+'", '+_ro+')');
if(!this.path_widget) return;
var path = this.path_widget.getValue();
if (_path == path)

View File

@ -58,7 +58,7 @@
<hbox span="all">
<image label="Up" src="goup" onclick="app.filemanager.change_dir('..');"/>
<image label="Go to your home directory" src="gohome" onclick="app.filemanager.change_dir('~');"/>
<vfs-name label="Path" id="path" onchange="return true;" options="80" class="address"/>
<vfs-name label="Path" id="path" options="80" class="address"/>
<button label="Go to" id="button[go]" image="key_enter"/>
<image src="buttonseparator"/>
<buttononly statustext="Rename, change permissions or ownership" label="Edit settings" id="button[edit]" onclick="app.filemanager.editprefs();" options="edit"/>