Skip to content

Commit

Permalink
Adding client-side validation
Browse files Browse the repository at this point in the history
  • Loading branch information
gorohoroh committed Jul 14, 2018
1 parent 0b80714 commit 7b546b8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
5 changes: 4 additions & 1 deletion OdeToFoodRider/OdeToFoodRider/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@
<div>You are anonymous</div>
}
</footer>

</div>

<script src="~/node_modules/jquery/dist/jquery.js"></script>
<script src="~/node_modules/jquery-validation-dist/jquery.validate.js"></script>
<script src="~/node_modules/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
</body>
</html>
5 changes: 4 additions & 1 deletion OdeToFoodRider/OdeToFoodRider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "OdeToFoodRider",
"version": "1.0.0",
"dependencies": {
"bootstrap": "3.3.7"
"bootstrap": "3.3.7",
"jquery": "^3.3.1",
"jquery-validation": "1.17.0",
"jquery-validation-unobtrusive": "3.2.6"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@
</footer>

</div>
<script src="~/node_modules/jquery/dist/jquery.js"></script>
<script src="~/node_modules/jquery-validation/dist/jquery.validate.js"></script>
<script src="~/node_modules/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
</body>
</html>
5 changes: 4 additions & 1 deletion OdeToFoodVisualStudio/OdeToFoodVisualStudio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"devDependencies": {
},
"dependencies": {
"bootstrap": "3.3.7"
"bootstrap": "3.3.7",
"jquery": "3.3.1",
"jquery-validation": "1.17.0",
"jquery-validation-unobtrusive": "3.2.6"
}
}

0 comments on commit 7b546b8

Please sign in to comment.