3654: remove "Combine selected collections and files into a new collection" option...
authorradhika <radhika@curoverse.com>
Thu, 4 Sep 2014 15:07:44 +0000 (11:07 -0400)
committerradhika <radhika@curoverse.com>
Thu, 4 Sep 2014 15:07:44 +0000 (11:07 -0400)
apps/workbench/app/assets/javascripts/selection.js
apps/workbench/app/views/projects/_show_tab_contents.html.erb

index fe6270036d8e72a373161ec9dafed345cac6be0c..cf31fd7e0a2b259f6bdd7496aee263b488af97d1 100644 (file)
@@ -57,10 +57,6 @@ jQuery(function($){
         $("#persistent-selection-count").text(lst.length);
         if (lst.length > 0) {
             html = '<li><a href="#" class="btn btn-xs btn-info" id="clear_selections_button"><i class="fa fa-fw fa-ban"></i> Clear selections</a></li>';
-            html += '<li><button class="btn btn-xs btn-info" type="submit" name="combine_selected_files_into_collection" '
-                + ' id="combine_selected_files_into_collection">'
-                + '<i class="fa fa-fw fa-archive"></i> Combine selected collections and files into a new collection</button></li>'
-                + '<li class="notification"><table style="width: 100%"></table></li>';
             $('#selection-form-content').html(html);
 
             for (var i = 0; i < lst.length; i++) {
index a46f535e921bc8ee00121596424aa3af680995ac..2789542de2070fed63cb8661bdb8d86a34d9ba55 100644 (file)
@@ -5,7 +5,7 @@
         <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">Selection... <span class="caret"></span></button>
         <ul class="dropdown-menu" role="menu">
           <li><%= link_to "Combine selections into a new collection", '/combine_selected',
-                  'data-href' => url_for('/combine_selected'),
+                  'data-href' => url_for('/combine_selected?show_project=true'),
                   'data-selection-param-name' => 'selection[]',
                   'data-selection-action' => 'combine',
                   'data-remote' => true,