diff options
author | plegall <plg@piwigo.org> | 2015-12-01 13:50:28 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2015-12-01 13:50:28 +0100 |
commit | 64d6beb13e27db6cbd4baf795fe71e3a98bb73ba (patch) | |
tree | 7307367ed25b06faa05c86f70c771395c2b91d5f | |
parent | be6afad731b965a75d9fe0b254ea72858a4deec4 (diff) |
improved use of jQuery, by @mistic100
Diffstat (limited to '')
-rw-r--r-- | admin/themes/default/template/cat_modify.tpl | 8 |
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 { |