Sha256: 13d48607a83061c20035761244580b64e5376f2cb7b4260674f3d06e9a184968
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
<% if flash[:search_query] %> <script> $(function(){ if(typeof sessionStorage === "undefined"){ return; }else{ var ids = JSON.parse(sessionStorage.getItem("<%= flash[:search_query] %>")); var index = $.inArray(<%= manifestation.id %>, ids); if (index != -1) { 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>'); }; } }; }); </script> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems