Sha256: 0e62db0d9147ed28cde3ee531b1bc49834ca4cfc5b548c891707093c4ac7cabe
Contents?: true
Size: 858 Bytes
Versions: 36
Compression:
Stored size: 858 Bytes
Contents
<% if flash[:search_query] %> <script> $(function(){ if(typeof sessionStorage === "undefined"){ return; }else{ var ids = JSON.parse(sessionStorage.getItem("ids_<%= flash[:search_query] %>")); var query = sessionStorage.getItem("query_<%= flash[:search_query] %>"); var index = $.inArray(<%= manifestation.id %>, ids); if(ids[index - 1] > 0){ $("#prev_link").html('<a href="<%= manifestations_path %>/' + ids[index - 1] + '"><%= t('page.previous') %></a>'); }; if(ids[index + 1] > 0){ $("#next_link").html('<a href="<%= manifestations_path %>/' + ids[index + 1] + '"><%= t('page.next') %></a>'); }; $("#back_link").html('<a href="<%= manifestations_path %>?' + query + '"><%= t('page.back_to_index') %></a>'); }; }); </script> <% end %>
Version data entries
36 entries across 35 versions & 2 rubygems