Improved JavaScript in ModeForm.
This commit is contained in:
@@ -6,9 +6,7 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function add_sport_handler() {
|
function add_sport_handler() {
|
||||||
var elements = $("input[name=sport]");
|
var elements = $("input[name=sport]");
|
||||||
for(var i = 0 ; i < elements.length ; i++) {
|
elements.click(function(){ sport_handler(); });
|
||||||
elements[i].onclick = function(){ sport_handler(); };
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sport_handler() {
|
function sport_handler() {
|
||||||
|
|||||||
Reference in New Issue
Block a user