liquid_feedback_frontend

changeset 928:ebcc40a3f8b3

Use event.target instead of event.srcElement in voting javascript
author bsw
date Sat Oct 20 17:20:51 2012 +0200 (2012-10-20)
parents a6b187049378
children 403e8c211592
files static/js/voting.js
line diff
     1.1 --- a/static/js/voting.js	Mon Oct 15 21:44:19 2012 +0200
     1.2 +++ b/static/js/voting.js	Sat Oct 20 17:20:51 2012 +0200
     1.3 @@ -291,7 +291,7 @@
     1.4            element.className == "voting_done2" ||
     1.5            element.name == "preview") {
     1.6          element.addEventListener("click", function(event) {
     1.7 -          if (event.srcElement.name == "preview") {
     1.8 +          if (event.target.name == "preview") {
     1.9              document.getElementById("preview2").value = "1";
    1.10            }
    1.11            var scoringString = "";
    1.12 @@ -355,4 +355,4 @@
    1.13    }
    1.14  
    1.15    
    1.16 -}
    1.17 \ No newline at end of file
    1.18 +}

Impressum / About Us