Changeset 115441 in spip-zone


Ignore:
Timestamp:
May 20, 2019, 2:19:27 PM (3 months ago)
Author:
cy.altern@…
Message:

Utilisation de la classe CSS native SPIP ".none" pour masquer les éléments. Régularisation des espaces dans les déclarations CSS. (merci b_b)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/champs_extras_interface/trunk/prive/squelettes/contenu/champs_extras_edit.html

    r115428 r115441  
    1818                + ".formulaire_editer_champs_extras textarea[name],"
    1919                + ".formulaire_editer_champs_extras select[name]").each(function() {
    20                 jQuery(this).after('<span class="affname masque">' + jQuery(this).attr('name') + '</span>');
     20                jQuery(this).after('<span class="affname none">' + jQuery(this).attr('name') + '</span>');
    2121        });
    2222        jQuery(".entete-formulaire").append('<span class="aff_noms" title="<:iextras:afficher_noms:>">[+]</span>'
    23                 + '<span class="aff_noms masque" title="<:iextras:masquer_noms:>">[-]</span>');
    24         jQuery(".entete-formulaire").on("click", ".aff_noms", function() { jQuery(".aff_noms, .affname").toggleClass("masque"); });
     23                + '<span class="aff_noms none" title="<:iextras:masquer_noms:>">[-]</span>');
     24        jQuery(".entete-formulaire").on("click", ".aff_noms", function() { jQuery(".aff_noms, .affname").toggleClass("none"); });
    2525});
    2626</script>
    2727<style type="text/css">
    28 .aff_noms {color: #DDD; float: right;font-size: 10px;cursor:pointer;}
    29 .affname {background-color:#f1ff0066;float:right;}
    30 .masque {display: none;}
     28.aff_noms { color: #DDD; float: right; font-size: 10px; cursor: pointer;}
     29.affname { background-color: #f1ff0066; float: right;}
    3130</style>
Note: See TracChangeset for help on using the changeset viewer.