4024: Add test for double-load bug.
[arvados.git] / apps / workbench / app / views / pipeline_instances / index.html.erb
index 0ad2ca04b891febf72e78d18aa8b905e4ddf3de9..e538815b228adb84c6264cc2153c0b25eacd0722 100644 (file)
@@ -1,21 +1,18 @@
 <% content_for :tab_line_buttons do %>
-<%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
+  <div class="input-group">
+    <input type="text" class="form-control filterable-control recent-pipeline-instances-filterable-control"
+           placeholder="Search pipeline instances"
+           data-filterable-target="#recent-pipeline-instances"
+           <%# Just for the double-load test in FilterableInfiniteScrollTest: %>
+           value="<%= params[:search] %>"
+           />
+  </div>
+
+  <%= form_tag({action: 'compare', controller: params[:controller], method: 'get'}, {method: 'get', id: 'compare', class: 'pull-right small-form-margin'}) do |f| %>
   <%= submit_tag 'Compare 2 or 3 selected', {class: 'btn btn-primary', disabled: true, style: 'display: none'} %>
   &nbsp;
-<% end rescue nil %>
+  <% end rescue nil %>
 
-  <%= form_tag pipeline_instances_path, method: 'get', remote: true, class: 'form-search' do %>
-    <div class="input-group">
-      <input type="text" class="form-control filterable-control recent-pipeline-instances-filterable-control"
-             placeholder="Search pipeline instances" 
-             data-filterable-target="table.arv-recent-pipeline-instances tbody"/>
-       <span class="input-group-btn">
-         <%= button_tag(class: 'btn btn-info') do %>
-         <span class="glyphicon glyphicon-search"></span>
-         <% end %>
-       </span>
-    </div>
-  <% end %>
 <% end %>
 
 <%= render file: 'application/index.html.erb', locals: local_assigns %>