mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-09 07:15:04 +02:00
Give filemanager selection a widget front-end.
This commit is contained in:
@ -643,5 +643,40 @@ app.filemanager = AppJS.extend(
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Functions for the select dialog
|
||||
*/
|
||||
select_goto: function(to,widget)
|
||||
{
|
||||
if (widget)
|
||||
{
|
||||
var path = null;
|
||||
// Cannot do this, there are multiple widgets named path
|
||||
// widget.getRoot().getWidgetById("path");
|
||||
widget.getRoot().iterateOver(function(widget) {
|
||||
if(widget.id == "path") path = widget;
|
||||
},null, et2_textbox);
|
||||
if(path)
|
||||
{
|
||||
path.set_value(to);
|
||||
path.getInstanceManager().postSubmit();
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
select_show: function(file)
|
||||
{
|
||||
var editfield = document.getElementById("exec[name]");
|
||||
editfield.value = file;
|
||||
return false;
|
||||
},
|
||||
select_toggle: function(file)
|
||||
{
|
||||
checkbox = document.getElementById("exec[dir][selected]["+file+"]");
|
||||
if (checkbox) checkbox.checked = !checkbox.checked;
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user