Commit 04b23d4a authored by jlaval's avatar jlaval
Browse files

Dernier changement hopefully

parent a82ef4e9
...@@ -858,7 +858,7 @@ class interfaceweb ...@@ -858,7 +858,7 @@ class interfaceweb
$cts->add($frm); $cts->add($frm);
if ($level == 3) if ($level == 3)
$cts->puts('<script type="text/javascript">var txt = document.getElementsByName("____really_sure__")[0]; var sub = document.getElementById("___i_am_really_sure"); sub.disabled = true; txt.onkeypress = function () { var txt = document.getElementsByName("____really_sure__")[0]; var sub = document.getElementById("___i_am_really_sure"); if (txt.value == "'.$phrase_magique.'") sub.disabled = false; else sub.disabled = true; }</script>'); $cts->puts('<script type="text/javascript">var txt = document.getElementsByName("____really_sure__")[0]; var sub = document.getElementById("___i_am_really_sure"); sub.disabled = true; txt.onchange = function () { var txt = document.getElementsByName("____really_sure__")[0]; var sub = document.getElementById("___i_am_really_sure"); if (txt.value == "'.$phrase_magique.'") sub.disabled = false; else sub.disabled = true; }</script>');
$this->add_contents($cts); $this->add_contents($cts);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment