loading file prefs popoup via javascript, to take current dir into account

This commit is contained in:
Ralf Becker
2013-04-12 10:30:52 +00:00
parent f623dacd58
commit 8d339ace5e
2 changed files with 17 additions and 4 deletions

View File

@@ -171,7 +171,7 @@ app.filemanager = AppJS.extend(
},
/**
* Update clickboard tooltips in
* Update clickboard tooltips in buttons
*/
clipboard_tooltips: function()
{
@@ -179,7 +179,7 @@ app.filemanager = AppJS.extend(
for(var i=0; i < paste_buttons.length; ++i)
{
var button = this.et2.getWidgetById(paste_buttons[i]);
button.set_statustext(this.clipboard_files.join(",\n"));
if (button) button.set_statustext(this.clipboard_files.join(",\n"));
}
},
@@ -372,6 +372,19 @@ app.filemanager = AppJS.extend(
}
},
/**
* Edit prefs of current directory
*/
editprefs: function()
{
var path = this.path_widget.getValue();
egw().open_link(egw.link('/index.php', {
menuaction: 'filemanager.filemanager_ui.file',
path: path,
}), 'fileprefs', '495x425');
},
/**
* File(s) droped
*