Skip to content

Commit

Permalink
Fixes #1725 by using a selector instead of 'this', so reasonSelected …
Browse files Browse the repository at this point in the history
…works both for jQuery change event and when being called directly
  • Loading branch information
Matthew D. Groves committed Feb 6, 2014
1 parent f61b64e commit d61601a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NuGetGallery/Views/Packages/ReportAbuse.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<script>
function reasonSelected() {
var $form = $('#Reason').parents('form');
var val = $(this).val();
var val = $('#Reason').val();
if (val) {
$form.validate().element($('#Reason'));
}
Expand Down

0 comments on commit d61601a

Please sign in to comment.