Skip to content

Commit

Permalink
Append dynamic lucky search input to same form as event
Browse files Browse the repository at this point in the history
fixes #1539.
  • Loading branch information
rwstauner committed Jun 20, 2015
1 parent a3c5e46 commit d221b8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions root/static/js/cpan.js
Expand Up @@ -167,9 +167,10 @@ $(document).ready(function() {
luckyField.type = 'hidden';
luckyField.name = 'lucky';
luckyField.value = '1';
document.forms[0].appendChild(luckyField);

document.forms[0].submit();
var form = event.target.form;
form.appendChild(luckyField);
form.submit();
}
});

Expand Down

0 comments on commit d221b8b

Please sign in to comment.