Commit 6d9f57f2 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_credential: make credential recovery dialog also work with erp5_web_renderjs_ui_minimal_theme

parent 9f1b0df3
......@@ -186,7 +186,9 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>unicode</string> </key>
......@@ -220,24 +222,18 @@
<value> <string encoding="cdata"><![CDATA[
<script>\n
$(function(){\n
function toggleRecoveryField() {\n
if ($("input[name=\'field_your_choice\']:checked").val() == \'username\') {\n
$("input[name=\'field_your_reference\']").parent().parent().addClass("hidden");\n
$("input[name=\'field_your_reference\']").addClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").removeClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").parent().parent().removeClass("hidden");\n
function toggleRecoveryField () {\n
if (document.querySelector("input[name=\'field_your_choice\']:checked").value == \'username\') {\n
document.querySelector("div.field input[name=\'field_your_reference\']").parentElement.parentElement.classList.add("hidden", "ui-screen-hidden");\n
document.querySelector("div.field input[name=\'field_your_default_email_text\']").parentElement.parentElement.classList.remove("hidden", "ui-screen-hidden");\n
}\n
else{\n
$("input[name=\'field_your_reference\']").removeClass("hidden");\n
$("input[name=\'field_your_reference\']").parent().parent().removeClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").addClass("hidden");\n
$("input[name=\'field_your_default_email_text\']").parent().parent().addClass("hidden");\n
else {\n
document.querySelector("div.field input[name=\'field_your_reference\']").parentElement.parentElement.classList.remove("hidden", "ui-screen-hidden");\n
document.querySelector("div.field input[name=\'field_your_default_email_text\']").parentElement.parentElement.classList.add("hidden", "ui-screen-hidden");\n
}\n
}\n
$("input[name=\'field_your_choice\']").change(function(){toggleRecoveryField()});\n
document.querySelectorAll("input[name=\'field_your_choice\']").forEach(function (element) {element.addEventListener("change", toggleRecoveryField)});\n
toggleRecoveryField();\n
});\n
</script>
]]></string> </value>
......@@ -312,4 +308,17 @@ toggleRecoveryField();\n
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="TALESMethod" module="Products.Formulator.TALESField"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: ""</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -10,7 +10,6 @@
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>css_class</string>
<string>required</string>
</list>
</value>
......@@ -53,10 +52,6 @@
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
......@@ -82,10 +77,6 @@
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>css_class</string> </key>
<value> <string>hidden</string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>my_dialog_mode_required_default_email_text</string> </value>
......
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