11 | 11 | 5. Javascript file `extraction_preparation.js` in `resources/sampleproc/` updated:[[BR]]a. Function `initializeStep1(response)` updated to hide new select tag with id "`extraQiacubeItems`".[[BR]]b. Function `initializeStep3()` updated by calling new function `createExtraItemsList(numExtraItems)` to create an extra items list with default names. Table cells for the extra item names are updated to text input fields, with callback function set tot new function `itemNameOnChange(event)`.[[BR]]c. New function `createExtraItemsList(numExtraItems)` added. It creates an extra items list with default names, and stores the list in hidden select tag with id "`extraQiacubeItems`"[[BR]]d. Function `getExtraItemsList(numExtraItems)` updated to `getExtraItemsList()` and fetching the extra items list from hidden select tag with id "`extraQiacubeItems`", instead of creating the items with default names.[[BR]]e. New function `itemNameOnChange(event)` added. It updates the extra items JSON object by setting the names of the extra items to the values in the name input fields for the latter, after which function `updateDetailsTable()` is called.[[BR]]f. Function `updateDetailsTable()` updated to set values of input fields for extra item names to those of the extra items in the processed JSON object.[[BR]]g. Function `submit()` updated to include data for extra QIAcube items in JSON object with key "`extraItems`", when sending an Ajax request to `ExtractionServlet` with command "`RegisterStartPlate`". |