Opened 13 years ago

Closed 12 years ago

#2272 closed defect (wontfix)

checkChildrenForFile test for disabled

Reported by: jeremy@… Owned by: alex
Priority: high Milestone:
Component: IO Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

When checking to see if a form may be sent via XHR, dojo.io.checkChildrenForFile is called. Under such circumstances, if a file-field is disabled it is not important regards the transport used. This updated version ignores disabled file-fields :

dojo.io.checkChildrenForFile = function(node) {

var hasFile = false; var inputs = node.getElementsByTagName("input"); dojo.lang.forEach(inputs, function(input){

if(hasFile){ return; } if(input.getAttribute("type")=="file" && !input.disabled){

hasFile = true;

}

}); return hasFile;

}

Change History (1)

comment:1 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

This is no longer an issue with 0.9 because we don't have automatic transport selection anymore.

Note: See TracTickets for help on using tickets.