mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Fix clicking on file name toggles checkbox
This commit is contained in:
parent
4449e9a44b
commit
04ce0638a9
@ -275,7 +275,7 @@ class filemanager_select
|
||||
'mime' => $mime,
|
||||
'onclick' => $is_dir ? "return app.filemanager.select_goto('".addslashes($path)."'".($et2?',widget':'').");" :
|
||||
($content['mode'] != 'open-multiple' ? "return app.filemanager.select_show('".addslashes($name)."');" :
|
||||
"return app.filemanager.select_toggle('".addslashes($name)."');"),
|
||||
"return app.filemanager.select_toggle('".addslashes($name)."',widget);"),
|
||||
);
|
||||
if ($is_dir && $content['mode'] == 'open-multiple')
|
||||
{
|
||||
|
@ -673,10 +673,8 @@ app.filemanager = AppJS.extend(
|
||||
editfield.value = file;
|
||||
return false;
|
||||
},
|
||||
select_toggle: function(file)
|
||||
select_toggle: function(file,widget)
|
||||
{
|
||||
checkbox = document.getElementById("exec[dir][selected]["+file+"]");
|
||||
if (checkbox) checkbox.checked = !checkbox.checked;
|
||||
return false;
|
||||
widget._parent.getWidgetById('selected['+file+']').set_value(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[]" options=""$row_cont[name]""/>
|
||||
<checkbox align="right" id="selected[{$row_cont[name]}]" options=""$row_cont[name]""/>
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
Loading…
Reference in New Issue
Block a user