Skip to content

Commit

Permalink
fixes #188, input image shouldnt be inserted into the querystring as …
Browse files Browse the repository at this point in the history
…its just included when the image input/button is clicked. There are specs created for this, and the fix makes it pass.
  • Loading branch information
fabiomcosta committed Apr 7, 2010
1 parent 3c37cd3 commit 57c7bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Element/Element.js
Expand Up @@ -521,7 +521,7 @@ Element.implement({
var queryString = [];
this.getElements('input, select, textarea').each(function(el){
var type = el.type;
if (!el.name || el.disabled || type == 'submit' || type == 'reset' || type == 'file') return;
if (!el.name || el.disabled || type == 'submit' || type == 'reset' || type == 'file' || type == 'image') return;

var value = (el.get('tag') == 'select') ? el.getSelected().map(function(opt){
// IE
Expand Down

0 comments on commit 57c7bc5

Please sign in to comment.