4840: Workbench selection actions are submitted by POST.
authorBrett Smith <brett@curoverse.com>
Thu, 15 Jan 2015 22:30:28 +0000 (17:30 -0500)
committerBrett Smith <brett@curoverse.com>
Mon, 19 Jan 2015 20:02:42 +0000 (15:02 -0500)
commitfaf89f7e200e69dca019cf530e121d08ac06f105
treedde53e45a07cddbfeb3e91aed2bb4d6135d72ab8
parentac8b77cf3ed0d979e7e6b73c09ce552a51aeb3e9
4840: Workbench selection actions are submitted by POST.

The previous implementation could get 414 Request URI Too Long
responses by stuffing a large number of selections into the link href.
This commit sidesteps that problem by POSTing the data with a hidden
form instead.  It's based on rails-ujs' strategy for handling links
with data-method that we were already using for some selection
actions, so it should be minimally disruptive.
apps/workbench/app/assets/javascripts/selection.js.erb
apps/workbench/app/controllers/application_controller.rb