Changes between Version 3 and Version 4 of Ticket #767, comment 4


Ignore:
Timestamp:
Apr 14, 2015, 8:29:23 AM (10 years ago)
Author:
olle

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #767, comment 4

    v3 v4  
    1010 4. JSP file `extraction_preparation.jsp` in `resources/sampleproc/` updated by adding new hidden multiple select tag with id "`extraQiacubeItems`", for storage of data for extra QIAcube items.
    1111 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`".
     12 6. Javascript file `extraction_registration.js` in `resources/sampleproc/` updated:[[BR]]a. Function `sourceItemListLoaded(response)` updated to get values for global JSON array `extraItemsList` from `response.extraitems`.[[BR]]b. Function `initializeStep3()` updated to not call function `getExtraItemsList(numExtraItems)` to obtain default values for global JSON array `extraItemsList`, since it now is supplied by the `ExtractionServlet` response.
     13 7. Javascript file `extraction_formcopy.js` in `resources/sampleproc/` updated:[[BR]]a. Function `sourceItemListLoaded(response)` updated to get values for global JSON array `extraItemsList` from `response.extraitems`.[[BR]]b. Function `initializeStep3()` updated to not call function `getExtraItemsList(numExtraItems)` to obtain default values for global JSON array `extraItemsList`, since it now is supplied by the `ExtractionServlet` response.