Skip to content

Commit e741933

Browse files
author
Leonix
committed
photos/plugins/publicgallery: v.1.1.3
1 parent 6b6240d commit e741933

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

wa-apps/photos/plugins/publicgallery/lib/config/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'name' => /*_wp*/('Public Gallery'),
55
'description' => /*_wp*/('Enables the ability to upload and vote for photos in the app frontend'),
66
'img' => 'img/publicgallery.png',
7-
'version' => '1.1.2',
7+
'version' => '1.1.3',
88
'vendor' => 'webasyst',
99
'rights' => false,
1010
'frontend' => true,

wa-apps/photos/plugins/publicgallery/lib/photosPublicgallery.plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ public function backendPhoto($photo_id)
231231
}
232232

233233
$html = '<a class="hint" href="javascript:void(0);" id="photo-rate-votes-count" data-you-voted="'.(int)($your_rate > 0).'"><u>'.$votes_count_text.'</u></a>'.
234-
'<span id="p-your-rate-wrapper">'._wp('My vote: ').
234+
'<span id="p-your-rate-wrapper" class="custom-ml-8">'._wp('My vote: ').
235235
'<a href="javascript:void(0);" id="your-rate" class="p-rate-photo" data-rate="'.$your_rate.'">'.
236236
photosPhoto::getRatingHtml($your_rate, 10, true).
237237
'</a></span>'.
238238
'<a class="p-rate-clear small" href="javascript:void(0);" style="display:none;" id="clear-photo-rate">'._wp('cancel my vote').'</a>';
239-
$html .= '<script>$.photos.publicgalleryInitYourRate();</script>';
239+
$html .= '<script>$(function() { $.photos.publicgalleryInitYourRate(); });</script>';
240240
return array(
241241
'after_rate' => $html
242242
);

0 commit comments

Comments
 (0)