Commit b8790ce8 authored by Vanessa's avatar Vanessa

fixed #66

parent c92707e9
......@@ -110,11 +110,19 @@
</div>
</div>
<script type="text/javascript">
$("#userPasswordConfirm").keypress(function (event) {
if (event.keyCode === 13) {
getUserInfo();
}
});
(function () {
$("input").keypress(function (event) {
if (event.keyCode === 13) {
event.preventDefault();
}
});
$("#userPasswordConfirm").keypress(function (event) {
if (event.keyCode === 13) {
getUserInfo();
}
});
})();
var validate = function () {
var userName = $("#userName").val().replace(/(^\s*)|(\s*$)/g, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment