Changeset 4608


Ignore:
Timestamp:
Oct 28, 2008, 1:20:23 PM (15 years ago)
Author:
Nicklas Nordborg
Message:

References #792: Add support for units to annotation values

Fixes javascript error for annotation types that can't use a unit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/annotationtypes/edit_annotationtype.jsp

    r4544 r4608  
    190190        frm.addCategories.value = Link.getActionIds(1, 'C').join(',');
    191191        frm.removeCategories.value = Link.getActionIds(-1, 'C').join(',');
    192         frm.addUsableUnits.value = Link.getActionIds(1, 'U').join(',');
    193         frm.removeUsableUnits.value = Link.getActionIds(-1, 'U').join(',');
     192        if (frm.addUsableUnits && frm.removeUsableUnits)
     193        {
     194          frm.addUsableUnits.value = Link.getActionIds(1, 'U').join(',');
     195          frm.removeUsableUnits.value = Link.getActionIds(-1, 'U').join(',');
     196        }
    194197        frm.submit();
    195198      }
Note: See TracChangeset for help on using the changeset viewer.