aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2015-12-01 13:50:28 +0100
committerplegall <plg@piwigo.org>2015-12-01 13:50:28 +0100
commit64d6beb13e27db6cbd4baf795fe71e3a98bb73ba (patch)
tree7307367ed25b06faa05c86f70c771395c2b91d5f /admin/themes/default
parentbe6afad731b965a75d9fe0b254ea72858a4deec4 (diff)
improved use of jQuery, by @mistic100
Diffstat (limited to 'admin/themes/default')
-rw-r--r--admin/themes/default/template/cat_modify.tpl8
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl
index af1fb5792..013cf9553 100644
--- a/admin/themes/default/template/cat_modify.tpl
+++ b/admin/themes/default/template/cat_modify.tpl
@@ -43,9 +43,11 @@ jQuery(document).ready(function() {
success:function(data) {
var data = jQuery.parseJSON(data);
if (data.stat == 'ok') {
- jQuery(".albumThumbnailImage").attr('href', data.result.url);
- jQuery(".albumThumbnailImage img").attr('src', data.result.src);
- jQuery(".albumThumbnailImage").show();
+ jQuery(".albumThumbnailImage")
+ .attr('href', data.result.url)
+ .find("img").attr('src', data.result.src)
+ .end().show();
+
jQuery(".albumThumbnailRandom").hide();
}
else {