Skip to content

Commit

Permalink
Fixes #139 Search form doesn't submit filters on IE10
Browse files Browse the repository at this point in the history
  • Loading branch information
darklow committed Aug 13, 2013
1 parent 8f98158 commit 6b80d37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion suit/static/suit/js/suit.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
var $field = $(this);
var $option = $field.find('option:selected');
var select_name = $option.data('name');
$field.attr('name', select_name ? select_name : '')
if (select_name) {
$field.attr('name', select_name);
} else {
$field.removeAttr('name');
}
// Handle additional values for date filters
var additional = $option.data('additional');
if (additional) {
Expand Down

0 comments on commit 6b80d37

Please sign in to comment.