(function() { 'use strict'; /** * * Mass Input Utility * allows form shapes to be manipulated asynchronously: * will asynchronously submit the form and replace the contents of the * mass input with the one from the BE response * * Attribute: uw-mass-input * (will be set up automatically on tables) * * Example usage: * (table with one column thats only checkboxes) */ var MASS_INPUT_UTIL_NAME = 'massInput'; var MASS_INPUT_UTIL_SELECTOR = '[uw-mass-input]'; var MASS_INPUT_INITIALIZED_CLASS = 'mass-input--initialized'; var massInputUtil = function(element) { var massInputId; var massInputFormSubmitHandler; var massInputForm; function init() { if (!element) { throw new Error('Mass Input utility cannot be setup without an element!'); } massInputId = element.id; massInputForm = element.closest('form'); if (!massInputForm) { throw new Error('Mass Input utility cannot be setup without being wrapped in a