Changeset 6995


Ignore:
Timestamp:
Nov 3, 2015, 9:57:55 AM (7 years ago)
Author:
Nicklas Nordborg
Message:

References #1958: Add Kit item

Update recently used kits when the item subtype is changed.

Location:
trunk/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/biomaterials/extracts/extracts.js

    r6993 r6995  
    280280    var frm = document.forms['extract'];
    281281    var subtypeId = ItemSubtype.getSubtypeId('subtype_id');
    282     var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('EXTRACT', subtypeId, ['PROTOCOL', 'BIOPLATE', 'TAG', 'SAMPLE', 'EXTRACT']);
     282    var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('EXTRACT', subtypeId, ['PROTOCOL', 'KIT', 'BIOPLATE', 'TAG', 'SAMPLE', 'EXTRACT']);
    283283    ItemSubtype.updateSelectionList(frm.protocol_id, recentInfo.PROTOCOL['recent'], recentInfo.PROTOCOL['default']);
     284    ItemSubtype.updateSelectionList(frm.kit_id, recentInfo.KIT['recent']);
    284285    ItemSubtype.updateSelectionList(frm.tag_id, recentInfo.TAG['recent']);
    285286    ItemSubtype.updateSelectionList(frm.bioplate_id, recentInfo.BIOPLATE['recent']);
  • trunk/www/biomaterials/samples/samples.js

    r6993 r6995  
    375375    var frm = document.forms['sample'];
    376376    var subtypeId = ItemSubtype.getSubtypeId('subtype_id');
    377     var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('SAMPLE', subtypeId, ['PROTOCOL', 'BIOPLATE', 'BIOSOURCE', 'SAMPLE']);
     377    var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('SAMPLE', subtypeId, ['PROTOCOL', 'KIT', 'BIOPLATE', 'BIOSOURCE', 'SAMPLE']);
    378378    ItemSubtype.updateSelectionList(frm.protocol_id, recentInfo.PROTOCOL['recent'], recentInfo.PROTOCOL['default']);
     379    ItemSubtype.updateSelectionList(frm.kit_id, recentInfo.KIT['recent']);
    379380    ItemSubtype.updateSelectionList(frm.bioplate_id, recentInfo.BIOPLATE['recent']);
    380381  }
  • trunk/www/views/physicalbioassays/bioassays.js

    r6994 r6995  
    273273    var frm = document.forms['bioassay'];
    274274    var subtypeId = ItemSubtype.getSubtypeId('subtype_id');
    275     var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('PHYSICALBIOASSAY', subtypeId, ['PROTOCOL', 'HARDWARE']);
     275    var recentInfo = ItemSubtype.getRelatedProjectDefaultAndRecentItems('PHYSICALBIOASSAY', subtypeId, ['PROTOCOL', 'HARDWARE', 'KIT']);
    276276   
    277277    ItemSubtype.updateSelectionList(frm.protocol_id, recentInfo.PROTOCOL['recent'], recentInfo.PROTOCOL['default']);
    278278    ItemSubtype.updateSelectionList(frm.hardware_id, recentInfo.HARDWARE['recent'], recentInfo.HARDWARE['default']);
     279    ItemSubtype.updateSelectionList(frm.kit_id, recentInfo.KIT['recent']);
    279280  }
    280281
Note: See TracChangeset for help on using the changeset viewer.