aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-07-17 15:13:25 +0000
committerplegall <plg@piwigo.org>2005-07-17 15:13:25 +0000
commit8b97a8154ebb024c1c2610d82646e48b913721bc (patch)
treeb8144cb14fe8061e81a1a3c3d06046fc7281366f
parent3643e999a59e0b2f2a05c44850b03f7c0e36423c (diff)
- improvement : in admin/element_set_global, javascript is not used anymore
to select an item with its thumbnail git-svn-id: http://piwigo.org/svn/trunk@806 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--doc/ChangeLog5
-rw-r--r--template/default/admin/element_set_global.tpl7
2 files changed, 9 insertions, 3 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog
index 4b432e8af..2d03a1fbf 100644
--- a/doc/ChangeLog
+++ b/doc/ChangeLog
@@ -1,5 +1,10 @@
2005-07-17 Pierrick LE GALL
+ * improvement : in admin/element_set_global, javascript is not
+ used anymore to select an item with its thumbnail
+
+2005-07-17 Pierrick LE GALL
+
* bug fixed : in admin/user_list, if target is "selection" and
that no user is selected, an error occurs
diff --git a/template/default/admin/element_set_global.tpl b/template/default/admin/element_set_global.tpl
index edaba7b87..9b41a5219 100644
--- a/template/default/admin/element_set_global.tpl
+++ b/template/default/admin/element_set_global.tpl
@@ -164,13 +164,14 @@
<!-- BEGIN line -->
<tr>
<!-- BEGIN thumbnail -->
- <td class="thumbnail"
- onmousedown="document.getElementById('selection_{thumbnails.line.thumbnail.ID}').checked = (document.getElementById('selection_{thumbnails.line.thumbnail.ID}').checked ? false : true);">
+ <td class="thumbnail">
+ <label>
<img src="{thumbnails.line.thumbnail.SRC}"
alt="{thumbnails.line.thumbnail.ALT}"
title="{thumbnails.line.thumbnail.TITLE}"
class="thumbLink" />
- <br /><input type="checkbox" name="selection[]" value="{thumbnails.line.thumbnail.ID}" id="selection_{thumbnails.line.thumbnail.ID}" />
+ <br /><input type="checkbox" name="selection[]" value="{thumbnails.line.thumbnail.ID}" />
+ </label>
</td>
<!-- END thumbnail -->
</tr>