Ignore:
Timestamp:
04/05/12 17:01:43 (13 years ago)
Author:
Daniela Dorner
Message:
bugfix for date pulldowns
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/get_date.php

    r11780 r13322  
    9898        printf("<select id='%s%d'>\n", $_GET["fDateName"], $_GET["fIdx"]);
    9999    else
    100         printf("<select id='%s%d' onchange=\"get_dates('%s', this.value, this.value, %d, 'yes')\">\n",
     100        //printf("<select id='%s%d' onchange=\"get_dates('%s', this.value, this.value, %d, 'yes')\">\n",
     101        // fill dummy for first value, as else the value for the next pulldown might be set to a value by chance
     102        printf("<select id='%s%d' onchange=\"get_dates('%s', 'dummy', this.value, %d, 'yes')\">\n",
    101103               $_GET["fDateName"], $_GET["fIdx"], $newdatename, $_GET["fIdx"]);
     104
    102105    if (strcmp($_GET["fDateValue"],"empty")!=0)
    103106        printf("<option value='empty'>%s</option>\n", $datename);
Note: See TracChangeset for help on using the changeset viewer.