Skip to content

Commit

Permalink
Bump version and fix js error to add validation only if field exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mathmerized committed Sep 27, 2018
1 parent b71901b commit 411c1fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions app/views/assets/_accounting_asset_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@
form.submit();
}
});
$('input.funding-pcnt').rules( "add", {
pcntSumsHundred: true
});
if ($('input.funding-pcnt').length > 0) {
$('input.funding-pcnt').rules( "add", {
pcntSumsHundred: true
});
}
});
$('body').on('change', '#grant_purchases .funding-pcnt', function() {
Expand Down
2 changes: 1 addition & 1 deletion lib/transam_accounting/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module TransamAccounting
VERSION = "2.3.5"
VERSION = "2.3.6"
end

0 comments on commit 411c1fd

Please sign in to comment.