Sha256: 30b38292da837b855589960398441d3036380d6f0f9483c896810bbfa0b54037
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
// add a class so the thumbnail is highlighted $('#thumbnail_list').find('a').each(function() { if ($(this).hasClass('in_viewer')) { $(this).removeClass('in_viewer'); } if ($(this).data('viewer') === '<%= @page_sequence[:current] %>') { $(this).addClass('in_viewer'); } }); // update the image pagination $('#page_sequence').replaceWith("<%= escape_javascript(render :partial => 'catalog/_show_partials/show_multi_img_pagination', :locals => {:page_sequence => @page_sequence}) %>"); // update the main image $('#img_show_container').replaceWith("<%= escape_javascript(render :partial => 'catalog/_show_partials/show_default_img', :locals => {:image_pid => @page_sequence[:current], :document => @document, :page_sequence => @page_sequence}) %>");
Version data entries
5 entries across 5 versions & 1 rubygems