Changeset 25697 for main


Ignore:
Timestamp:
2012-05-29T13:00:03+12:00 (12 years ago)
Author:
kjdon
Message:

using setAttribute('value') doesn't work once the user has typed something into the text box - the attribute will be updated but not the value of the text box

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/transform/pages/authen.xsl

    r25594 r25697  
    420420                                                    var options = groupSelector.getElementsByTagName("OPTION");
    421421                                                    var selectedGroup = options[groupSelector.selectedIndex].innerHTML;
    422                                                     var currentValue = groupsInput.getAttribute("value");
     422                                                    var currentValue = groupsInput.value;
    423423                                                   
    424424                                                    if(currentValue && currentValue.search(/\w/) != -1)
    425425                                                    {
    426                                                         groupsInput.setAttribute("value", currentValue + "," + selectedGroup);
     426                                                        groupsInput.value = currentValue + "," + selectedGroup;
    427427                                                    }
    428428                                                    else
    429429                                                    {
    430                                                         groupsInput.setAttribute("value", selectedGroup);
     430                                                        groupsInput.value = selectedGroup;
    431431                                                    }
    432432                                                    return false;
Note: See TracChangeset for help on using the changeset viewer.