File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
wa-apps/photos/plugins/publicgallery/lib Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments