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:
Nathan Gray 2013-10-02 07:34:23 +00:00
parent e57e994e9d
commit 4951741fcb
2 changed files with 7 additions and 2 deletions

View File

@ -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);
}
});

View File

@ -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="&quot;$row_cont[name]&quot;"/>
<checkbox align="right" id="selected[]" options="&quot;$row_cont[name]&quot;"/>
</row>
</rows>
</grid>