3654: little cleanup around the post method
authorradhika <radhika@curoverse.com>
Sat, 6 Sep 2014 04:36:32 +0000 (00:36 -0400)
committerradhika <radhika@curoverse.com>
Sat, 6 Sep 2014 04:36:32 +0000 (00:36 -0400)
apps/workbench/app/views/collections/_show_files.html.erb
apps/workbench/app/views/collections/_show_recent.html.erb
apps/workbench/app/views/projects/_show_tab_contents.html.erb

index 581d74e67c68611d171c2de82180cc9df20e63ff..cf46965dc4df8ce6128638342db1a2cdfd4a3617 100644 (file)
@@ -5,11 +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", '#',
-                  'data-href' => combine_selected_path(
-                    action_href: actions_path,
-                    action_method: 'post',
-                    action_data_from_params: ['selection'],
-                  ),
+                  'data-href' => combine_selected_path,
                   'data-selection-param-name' => 'selection[]',
                   'data-selection-action' => 'combine-collections',
                   'data-remote' => true,
index e2dcd891ad9bad264029567df804f994770b12a4..1b0834d3f00b7691098eed3b4cdaec0883903e53 100644 (file)
@@ -5,11 +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", '#',
-                  'data-href' => combine_selected_path(
-                    action_href: actions_path,
-                    action_method: 'post',
-                    action_data_from_params: ['selection'],
-                  ),
+                  'data-href' => combine_selected_path,
                   'data-selection-param-name' => 'selection[]',
                   'data-selection-action' => 'combine-collections',
                   'data-remote' => true,
index 1a2d141a91be0ee40b7707618a1e881ef05ca725..986a2022615eb7ed3cc94797132c3a74e1bad6f3 100644 (file)
@@ -6,9 +6,6 @@
         <ul class="dropdown-menu" role="menu">
           <li><%= link_to "Combine selections into a new collection", '#',
                   'data-href' => combine_selected_path(
-                    action_href: actions_path,
-                    action_method: 'post',
-                    action_data_from_params: ['selection'],
                     action_data: {selection_param: 'project'}.to_json
                   ),
                   'data-selection-param-name' => 'selection[]',