add condition for selected theme
This commit is contained in:
parent
55ee815660
commit
6015cae8a8
1 changed files with 4 additions and 2 deletions
|
@ -83,11 +83,13 @@ function saml_footer(string &$body)
|
||||||
<script>
|
<script>
|
||||||
var target=$("#settings-nickname-desc");
|
var target=$("#settings-nickname-desc");
|
||||||
if (target.length) { target.append("<p>$fragment</p>"); }
|
if (target.length) { target.append("<p>$fragment</p>"); }
|
||||||
document.getElementById('id_email').setAttribute('readonly', 'readonly');
|
|
||||||
var saml_hint = document.createElement("span");
|
var saml_hint = document.createElement("span");
|
||||||
var saml_hint_text = document.createTextNode('$samlhint');
|
var saml_hint_text = document.createTextNode('$samlhint');
|
||||||
saml_hint.appendChild(saml_hint_text);
|
saml_hint.appendChild(saml_hint_text);
|
||||||
document.getElementById('id_email').parentNode.insertBefore(saml_hint, document.getElementById('id_email').nextSibling);
|
if ( document.getElementById('id_email') != null ) {
|
||||||
|
document.getElementById('id_email').setAttribute('readonly', 'readonly');
|
||||||
|
document.getElementById('id_email').parentNode.insertBefore(saml_hint, document.getElementById('id_email').nextSibling);
|
||||||
|
}
|
||||||
// Frio theme
|
// Frio theme
|
||||||
if ( document.getElementById('password-settings-collapse') != null ) {
|
if ( document.getElementById('password-settings-collapse') != null ) {
|
||||||
document.getElementById('password-settings-collapse').replaceChildren(saml_hint.cloneNode(true));
|
document.getElementById('password-settings-collapse').replaceChildren(saml_hint.cloneNode(true));
|
||||||
|
|
Loading…
Reference in a new issue