2862: Use ?format=js so browser does not think js and html views are
authorTom Clegg <tom@curoverse.com>
Wed, 28 May 2014 00:01:22 +0000 (20:01 -0400)
committerTom Clegg <tom@curoverse.com>
Wed, 28 May 2014 00:01:22 +0000 (20:01 -0400)
interchangeable. closes #2862

apps/workbench/app/views/pipeline_instances/_show_components.html.erb
apps/workbench/app/views/users/_tables.html.erb

index bb1f73c99d0ca55de4421500acee2553f0fa9e3b..c07561060ef208c2d89941d6b94b13e6a788aefe 100644 (file)
@@ -38,7 +38,7 @@
         <%# format:'js' here helps browsers avoid using the cached js
         content in html context (e.g., duplicate tab -> see
         javascript) %>
-        <%= link_to '(refresh)', {format:'js'}, class: 'refresh hide', remote: true, method: 'get' %>
+        <%= link_to '(refresh)', {format: :js}, {class: 'refresh hide', remote: true, method: 'get'} %>
       </th><th>
       </th><th>
         output
index f62bd5d4e3b73d8c30396fd0d23ae6f6e99c3479..13cc673de75ad0c9b10bca171e2ada95ef51f9b2 100644 (file)
@@ -1,7 +1,7 @@
 <% if current_user.andand.is_active %>
   <div>
     <strong>Recent jobs</strong>
-    <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
+    <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
     <%= link_to raw("Show all jobs &rarr;"), jobs_path, class: 'pull-right' %>
     <% if not current_user.andand.is_active or @my_jobs.empty? %>
       <p>(None)</p>
@@ -88,7 +88,7 @@
 
 <div>
   <strong>Recent pipeline instances</strong>
-  <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
+  <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
   <%= link_to raw("Show all pipeline instances &rarr;"), pipeline_instances_path, class: 'pull-right' %>
   <% if not current_user.andand.is_active or @my_pipelines.empty? %>
     <p>(None)</p>
 
 <div>
   <strong>Recent collections</strong>
-  <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %>
+  <%= link_to '(refresh)', {format: :js}, {class: 'refresh', remote: true, method: 'get'} %>
   <%= link_to raw("Show all collections &rarr;"), collections_path, class: 'pull-right' %>
   <div class="pull-right" style="padding-right: 1em; width: 30%;">
     <%= form_tag collections_path,