Change custom resources icon so clicking it opens the image. Category / general icons do nothing when clicked.

This commit is contained in:
Nathan Gray 2013-07-08 15:07:48 +00:00
parent 16014f8067
commit a9db128b70
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@
</rows> </rows>
</grid> </grid>
</template> </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%"> <grid width="100%">
<columns> <columns>
<column/> <column/>
@ -54,7 +54,7 @@
</hbox> </hbox>
</row> </row>
<row class="nmr $row_cont[class]" valign="top"> <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') {egw.open('/apps/resources/${row_cont[res_id]}/.picture.jpg','file');} return false;" image="$row_cont[picture_thumb]" class="thumb"/>
<vbox> <vbox>
<description id="${row}[name]" no_lang="1"/> <description id="${row}[name]" no_lang="1"/>
<description id="${row}[short_description]" no_lang="1"/> <description id="${row}[short_description]" no_lang="1"/>
@ -128,7 +128,7 @@
<template align="right" id="nm_right"/> <template align="right" id="nm_right"/>
</row> </row>
<row> <row>
<nextmatch id="nm" no_lang="1" options="resources.show.rows"/> <nextmatch id="nm" no_lang="1" template="resources.show.rows"/>
</row> </row>
<row disabled="!@nm[selectcols]=/legacy_actions/"> <row disabled="!@nm[selectcols]=/legacy_actions/">
<hbox align="right" span="all"> <hbox align="right" span="all">