projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9319f
)
Use jquery
author
Simon Poole
<simon@poole.ch>
Wed, 30 Jan 2019 09:19:21 +0000
(10:19 +0100)
committer
Simon Poole
<simon@poole.ch>
Mon, 13 May 2019 14:54:29 +0000
(16:54 +0200)
app/assets/javascripts/user.js
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/user.js
b/app/assets/javascripts/user.js
index 40ca866c52d65ab7dca633b55a383780ea4186d8..3803e180f1dc4acfda664a9892a8b40e8007a58f 100644
(file)
--- a/
app/assets/javascripts/user.js
+++ b/
app/assets/javascripts/user.js
@@
-126,7
+126,6
@@
$(document).ready(function () {
});
$("#read_tou").on("click", function () {
- var agreebtn = document.getElementById('agree');
- agreebtn.disabled=!this.checked;
+ $("#agree").prop("disabled", !$(this).prop("checked"));
});
});