forked from extern/egroupware
Fix select returning current path for not selected rows by using a different method to toggle on click of name
This commit is contained in:
parent
e57e994e9d
commit
4951741fcb
@ -675,6 +675,11 @@ app.filemanager = AppJS.extend(
|
||||
},
|
||||
select_toggle: function(file,widget)
|
||||
{
|
||||
widget._parent.getWidgetById('selected['+file+']').set_value(file);
|
||||
widget.getParent().iterateOver(function(widget) {
|
||||
if(widget.options.selected_value == file)
|
||||
{
|
||||
widget.set_value(widget.get_value() == file ? widget.options.unselected_value : file);
|
||||
}
|
||||
}, null, et2_checkbox);
|
||||
}
|
||||
});
|
||||
|
@ -50,7 +50,7 @@
|
||||
<row class="row">
|
||||
<vfs-mime align="center" id="$row" options="16" class="selectIcon"/>
|
||||
<vfs id="$row" onclick="$row_cont[onclick]"/>
|
||||
<checkbox align="right" id="selected[{$row_cont[name]}]" options=""$row_cont[name]""/>
|
||||
<checkbox align="right" id="selected[]" options=""$row_cont[name]""/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
Loading…
Reference in New Issue
Block a user