liquid_feedback_frontend

diff app/main/initiative/_suggestions.lua @ 1762:048d6bae2855

Fixed dialog cross-browser functionality
author bsw
date Mon Oct 18 11:10:31 2021 +0200 (2021-10-18)
parents 7df91db759ce
children fe28be5403e2
line diff
     1.1 --- a/app/main/initiative/_suggestions.lua	Fri Oct 15 09:57:42 2021 +0200
     1.2 +++ b/app/main/initiative/_suggestions.lua	Mon Oct 18 11:10:31 2021 +0200
     1.3 @@ -6,7 +6,7 @@
     1.4  
     1.5  
     1.6  if direct_supporter then
     1.7 -  ui.tag{ tag = "dialog", attr = { id = "rating_dialog" }, content = function ()
     1.8 +  ui.tag{ tag = "div", attr = { id = "rating_dialog", class = "hidden" }, content = function ()
     1.9  
    1.10      local opinion = {}
    1.11      ui.form { 
    1.12 @@ -112,7 +112,7 @@
    1.13          ui.tag{
    1.14            tag = "input",
    1.15            attr = {
    1.16 -            onclick = "document.getElementById('rating_dialog').close(); return false;",
    1.17 +            onclick = "document.getElementById('rating_dialog').classList.add('hidden'); return false;",
    1.18              type = "submit",
    1.19              class = "mdl-button mdl-js-button",
    1.20              value = _"cancel"

Impressum / About Us