liquid_feedback_frontend
diff static/js/xhr.js @ 1762:048d6bae2855
Fixed dialog cross-browser functionality
author | bsw |
---|---|
date | Mon Oct 18 11:10:31 2021 +0200 (2021-10-18) |
parents | 4188405c2425 |
children | fe28be5403e2 |
line diff
1.1 --- a/static/js/xhr.js Fri Oct 15 09:57:42 2021 +0200 1.2 +++ b/static/js/xhr.js Mon Oct 18 11:10:31 2021 +0200 1.3 @@ -41,7 +41,9 @@ 1.4 document.getElementById('rating_fulfilled').MaterialRadio.uncheck(); 1.5 document.getElementById('rating_notfulfilled').MaterialRadio.uncheck(); 1.6 } 1.7 - document.getElementById('rating_dialog').showModal(); 1.8 +// document.getElementById('rating_dialog').showModal(); 1.9 + document.getElementById('rating_dialog').classList.remove("hidden"); 1.10 + 1.11 } 1.12 1.13 function updateOpinion() { 1.14 @@ -102,7 +104,8 @@ 1.15 document.getElementById("s" + suggestionId + "_rate_button").innerHTML = rateSuggestionUpdateRatingText; 1.16 } 1.17 document.getElementById("s" + suggestionId + "_rate_button").setAttribute("onclick", "rateSuggestion(" + suggestionId + ", " + degree + ", " + fulfilled + ");return false;") 1.18 - document.getElementById('rating_dialog').close(); 1.19 +// document.getElementById('rating_dialog').close(); 1.20 + document.getElementById('rating_dialog').classList.add("hidden"); 1.21 1.22 fetch(baseURL + "opinion/xhr_update", { 1.23 method: "POST",