[ARVADOS] updated: e2bee889bc406f30b66337d823242869abe7e98d

git at public.curoverse.com git at public.curoverse.com
Fri Feb 21 17:10:58 EST 2014


Summary of changes:
 .../app/assets/javascripts/application.js          |    4 ++--
 .../app/views/collections/_index_tbody.html.erb    |    3 +++
 .../app/views/collections/_show_recent.html.erb    |    7 +++++++
 .../views/pipeline_instances/_show_recent.html.erb |    2 +-
 4 files changed, 13 insertions(+), 3 deletions(-)

       via  e2bee889bc406f30b66337d823242869abe7e98d (commit)
      from  bed3cfb9cce29a86e66201807c2289b79c34efcd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit e2bee889bc406f30b66337d823242869abe7e98d
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Feb 21 17:12:08 2014 -0500

    Added selection box to collections

diff --git a/apps/workbench/app/assets/javascripts/application.js b/apps/workbench/app/assets/javascripts/application.js
index 1108aba..fb6fe9a 100644
--- a/apps/workbench/app/assets/javascripts/application.js
+++ b/apps/workbench/app/assets/javascripts/application.js
@@ -100,8 +100,8 @@ jQuery(function($){
             $('.loading').fadeOut('fast', 0);
         }).
         on('change', '.persistent-selection:checkbox', function(e) {
-            console.log($(this));
-            console.log($(this).val());
+            //console.log($(this));
+            //console.log($(this).val());
 
             if (!localStorage.persistentSelection) {
                 localStorage.persistentSelection = JSON.stringify([]);
diff --git a/apps/workbench/app/views/collections/_index_tbody.html.erb b/apps/workbench/app/views/collections/_index_tbody.html.erb
index 9252886..0a3732a 100644
--- a/apps/workbench/app/views/collections/_index_tbody.html.erb
+++ b/apps/workbench/app/views/collections/_index_tbody.html.erb
@@ -2,6 +2,9 @@
 
 <tr class="collection">
   <td>
+    <%= check_box_tag 'uuids[]', c.uuid, false, :class => 'persistent-selection' %>
+  </td>
+  <td>
     <%= link_to_if_arvados_object c.uuid %>
   </td>
   <td>
diff --git a/apps/workbench/app/views/collections/_show_recent.html.erb b/apps/workbench/app/views/collections/_show_recent.html.erb
index 125f413..d94b169 100644
--- a/apps/workbench/app/views/collections/_show_recent.html.erb
+++ b/apps/workbench/app/views/collections/_show_recent.html.erb
@@ -15,8 +15,11 @@
 
 <div style="padding-right: 1em">
 
+<%= form_tag do |f| %>
+
 <table id="collections-index" class="topalign table table-condensed table-fixedlayout table-fixed-header-row">
   <colgroup>
+    <col width="4%" />
     <col width="10%" />
     <col width="36%" />
     <col width="22%" />
@@ -26,6 +29,7 @@
   </colgroup>
   <thead>
     <tr class="contain-align-left">
+      <th></th>
       <th>uuid</th>
       <th>contents</th>
       <th>owner</th>
@@ -38,6 +42,9 @@
     <%= render partial: 'index_tbody' %>
   </tbody>
 </table>
+
+<% end %>
+
 </div>
 
 <% content_for :footer_js do %>
diff --git a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb
index bfb3dc8..5d31701 100644
--- a/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb
+++ b/apps/workbench/app/views/pipeline_instances/_show_recent.html.erb
@@ -39,7 +39,7 @@
 
     <tr data-object-uuid="<%= ob.uuid %>">
       <td>
-        <%= check_box_tag 'uuids[]', ob.uuid, false %>
+        <%= check_box_tag 'uuids[]', ob.uuid, false, :class => 'persistent-selection' %>
       </td><td>
         <% if ob.success %>
         <span class="label label-success">success</span>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list