Changeset 4854


Ignore:
Timestamp:
Mar 26, 2009, 2:08:10 PM (13 years ago)
Author:
Martin Svensson
Message:

Fixes #1276 Edit annotationtype - Moving unit from 'do not use' to 'Use units' fails in Internet Explorer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.11-stable/www/admin/annotationtypes/edit_annotationtype.jsp

    r4669 r4854  
    268268        }
    269269        %>
    270         addUsableUnits(usableUnits);
     270        addToUsableUnits(usableUnits);
    271271      }
    272272    }
     
    282282    }
    283283
    284     function addUsableUnits(usableUnits)
     284    function addToUsableUnits(usableUnits)
    285285    {
    286286      var frm = document.forms['annotationType'];
     
    309309      }
    310310    }
    311     function removeUsableUnits()
     311    function removeFromUsableUnits()
    312312    {
    313313      var frm = document.forms['annotationType'];
     
    877877      <tr>
    878878        <td>
    879           <select name="usableUnits" size="5" multiple style="width: 15em;">
     879          <select name="usableUnits" size="5" multiple style="width: 15em;" ondblclick="removeFromUsableUnits()">
    880880          </select>
    881881        </td>
     
    883883           <br>
    884884          <base:button
    885             onclick="addUsableUnits()"
     885            onclick="addToUsableUnits()"
    886886            title="<img src='../../images/move_left.gif' alt='' style='vertical-align: middle;'>"
    887887            tooltip="Enable the annotation type for the selected unit(s)"
    888888          /><p>
    889889          <base:button
    890             onclick="removeUsableUnits()"
     890            onclick="removeFromUsableUnits()"
    891891            title="<img src='../../images/move_right.gif' alt='' style='vertical-align: middle;'>"
    892892            tooltip="Disable the annotation type for the selected unit(s)"
     
    895895        </td>
    896896        <td>
    897           <select name="allUnits" size="5" multiple style="width: 15em;">
     897          <select name="allUnits" size="5" multiple style="width: 15em;" ondblclick="addToUsableUnits()">
    898898          </select>
    899899          <input type="hidden" name="removeUsableUnits" value="">
Note: See TracChangeset for help on using the changeset viewer.