Opened 14 years ago
Closed 14 years ago
#2272 closed defect (wontfix)
checkChildrenForFile test for disabled
Reported by: | 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;
}
Note: See
TracTickets for help on using
tickets.
This is no longer an issue with 0.9 because we don't have automatic transport selection anymore.