Mercurial > hg > fapweb
changeset 534:067bef3846aa
Use onChange instead of onClick.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 12 Dec 2013 00:27:09 +0200 |
parents | f872843ae396 |
children | 88c048f3b9e1 |
files | admajax.php |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/admajax.php Thu Dec 12 00:26:50 2013 +0200 +++ b/admajax.php Thu Dec 12 00:27:09 2013 +0200 @@ -161,7 +161,7 @@ if ($voteKeyMode == VOTE_ACTIVATE) { $str .= stGetFormCheckBoxInput("active", $id, $prefix, $item["active"], FALSE, - "class=\"keyactive\" onClick=\"voteKeySetActive(".$id.")\"", ""); + "class=\"keyactive\" onChange=\"voteKeySetActive(".$id.")\"", ""); } return $str; @@ -427,7 +427,7 @@ return "<input type=\"radio\" id=\"showMode".$mode. "\" name=\"showMode\" value=\"".$mode."\" ". - "onClick=\"setShowMode(".$mode.")\" ". + "onChange=\"setShowMode(".$mode.")\" ". ($cmode == $mode ? "checked=\"checked\" ": "")."/>". "<label for=\"showMode".$mode."\">".chentities($name)."</label>"; }