[ARVADOS] updated: 6f2433691034b6e223445c5a047554ee7c6f92c1

git at public.curoverse.com git at public.curoverse.com
Wed Sep 17 10:51:09 EDT 2014


Summary of changes:
 .../assets/javascripts/{selection.js => selection.js.erb}    | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)
 rename apps/workbench/app/assets/javascripts/{selection.js => selection.js.erb} (96%)

       via  6f2433691034b6e223445c5a047554ee7c6f92c1 (commit)
      from  700fcdd3594713fc2f692d5c3c31474f0c8e14ff (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 6f2433691034b6e223445c5a047554ee7c6f92c1
Author: Phil Hodgson <bitbucket at philhodgson.net>
Date:   Wed Sep 17 10:51:06 2014 -0400

    3661: proposed change of the selection javascript to use the new copies_to_projects? class method on Group

diff --git a/apps/workbench/app/assets/javascripts/selection.js b/apps/workbench/app/assets/javascripts/selection.js.erb
similarity index 96%
rename from apps/workbench/app/assets/javascripts/selection.js
rename to apps/workbench/app/assets/javascripts/selection.js.erb
index c82b6ef..5357080 100644
--- a/apps/workbench/app/assets/javascripts/selection.js
+++ b/apps/workbench/app/assets/javascripts/selection.js.erb
@@ -212,11 +212,13 @@ function enable_disable_selection_actions() {
         toggleClass('disabled',
                     ($checked.filter('[value*=-d1hrv-]').length < 2) ||
                     ($checked.not('[value*=-d1hrv-]').length > 0));
-    $('[data-selection-action=copy]').
-        closest('li').
-        toggleClass('disabled',
-                    ($checked.filter('[value*=-j7d0g-]').length > 0) ||
-                    ($checked.length < 1));
+    <% unless Group.copies_to_projects? %>
+        $('[data-selection-action=copy]').
+            closest('li').
+            toggleClass('disabled',
+                        ($checked.filter('[value*=-j7d0g-]').length > 0) ||
+                        ($checked.length < 1));
+    <% end %>
 }
 
 $(document).

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list