Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var refreshRating = function() {
- $('.rating').raty( { path: '/assets', scoreName: 'comment[rating]' });
- $('.rated').raty({ path: '/assets',
- readOnly: true,
- score: function() {
- return $(this).attr('data-score');
- }
- });
- };
- $(document).on('turbolinks:load ajaxSuccess', function(){
- refreshRating();
- $('.img-zoom').elevateZoom({
- zoomType: "lens",
- lensShape : "round",
- lensSize : 200
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement