Have resource thumbnails open image when clicked

This commit is contained in:
Nathan Gray 2013-07-30 17:23:58 +00:00
parent e5b36d3ce3
commit ce6511e934
3 changed files with 10 additions and 81 deletions

View File

@ -247,6 +247,10 @@ class resources_bo
else
{
$rows[$num]['picture_thumb'] = $this->get_picture($resource);
if($rows[$num]['picture_src'] == 'own_src')
{
$rows[$num]['picture_url'] = $this->get_picture($resource, true);
}
}
$rows[$num]['admin'] = $this->acl->get_cat_admin($resource['cat_id']);
}

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
</rows>
</grid>
</template>
<template id="resources.show.rows" template="" lang="" group="0" version="1.9.002">
<template id="resources.show.rows" template="" lang="" group="0" version="1.9.003">
<grid width="100%">
<columns>
<column/>
@ -54,7 +54,7 @@
</hbox>
</row>
<row class="nmr $row_cont[class]" valign="top">
<button align="center" id="${row}[picture_thumb]" onclick="window.open(egw::link('/index.php','menuaction=resources.resources_ui.show&amp;res_id=$row_cont[res_id]'),'','dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes');return false;" image="$row_cont[picture_thumb]" class="thumb"/>
<button align="center" id="${row}[picture_thumb]" onclick="if('${row_cont[picture_src]}' == 'own_src') { window.open('{$row_cont[picture_url]}','_blank'); } return false;" image="$row_cont[picture_thumb]" class="thumb"/>
<vbox>
<description id="${row}[name]" no_lang="1"/>
<description id="${row}[short_description]" no_lang="1"/>
@ -76,14 +76,14 @@
<description id="${row}[storage_info]" no_lang="1"/>
</vbox>
<vbox no_lang="1">
<description id="${row}[accessory_of_label]" no_lang="1" href="resources.resources_ui.edit&amp;res_id=$row_cont[accessory_of]" extra_link_popup="850x600"/>
<description id="${row}[accessory_of_label]" no_lang="1" options=",resources.resources_ui.edit&amp;res_id=$row_cont[accessory_of],,,,850x600"/>
<grid width="100%" id="${row}[accessories]">
<columns>
<column/>
</columns>
<rows>
<row>
<description id="${row}[name]" no_lang="1" href="resources.resources_ui.edit&amp;res_id=$row_cont[acc_id]" extra_link_popup="850x600"/>
<description id="${row}[name]" no_lang="1" options=",resources.resources_ui.edit&amp;res_id=$row_cont[acc_id],,,,850x600"/>
</row>
</rows>
</grid>