# HG changeset patch # User bsw # Date 1350746451 -7200 # Node ID ebcc40a3f8b30dee4c37f66be54e8219cc6de90d # Parent a6b187049378fdb0065ae2cc50c90f37a3b938d3 Use event.target instead of event.srcElement in voting javascript diff -r a6b187049378 -r ebcc40a3f8b3 static/js/voting.js --- a/static/js/voting.js Mon Oct 15 21:44:19 2012 +0200 +++ b/static/js/voting.js Sat Oct 20 17:20:51 2012 +0200 @@ -291,7 +291,7 @@ element.className == "voting_done2" || element.name == "preview") { element.addEventListener("click", function(event) { - if (event.srcElement.name == "preview") { + if (event.target.name == "preview") { document.getElementById("preview2").value = "1"; } var scoringString = ""; @@ -355,4 +355,4 @@ } -} \ No newline at end of file +}