Changeset 11976 for trunk/www/db_po


Ignore:
Timestamp:
09/06/11 09:14:29 (13 years ago)
Author:
Daniela Dorner
Message:
bugfix for 'Add Prg/Key' button
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/po.js

    r11780 r11976  
    124124    {
    125125        progselect=document.getElementById("prog");
    126         if (progselect.options[progselect.selectedIndex])
     126        if (progselect.selectedIndex>=0)
    127127            prog=progselect.options[progselect.selectedIndex].value;
    128128        else
     
    135135            key='all';
    136136        else
    137             if (keyselect.options[keyselect.selectedIndex])
     137            if (keyselect.selectedIndex>=0)
    138138                key=keyselect.options[keyselect.selectedIndex].value;
    139139            else
    140140                key='all';
    141141    }
     142
    142143    switch(addcase)
    143144    {
Note: See TracChangeset for help on using the changeset viewer.