mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-10-04 20:19:55 +02:00
af0fef7119
-> Les noms des objets sont maintenant cliquable et nous emmènent sur la fiche de l'objet correspondant - LSformElement_select_object : -> Les noms des objets sont maintenant cliquable et nous emmènent sur la fiche de l'objet correspondant - LSformElement : -> Ajout de deux types d'élements de formulaire : -> LSformElement_mail : Adresse mail -> LSformElement_xmpp : Adresse xmpp - LSattribute : -> uniformisation des données des attributs (tous des array()) -> modifications des méthodes loadData() & reloadData() -> Correction des bugs induits par cette modification : - trunk/includes/class/class.LSattr_html_select_list.php - trunk/includes/class/class.LSldapObject.php - trunk/includes/class/class.LSattr_html_select_object.php - trunk/includes/class/class.LSattr_ldap_date.php - trunk/includes/class/class.LSsession.php - trunk/includes/addons/LSaddons.samba.php -> Correction d'un bug concernant le refresh des formulaires (#1695) -> modification de la méthode refreshForm() - LSsession : Correction d'un bug d'affichage du nom de l'utilisateur connecté
34 lines
977 B
JavaScript
34 lines
977 B
JavaScript
var LSformElement_mail = new Class({
|
|
initialize: function(){
|
|
this.initialiseLSformElement_mail();
|
|
if (typeof(varLSform) != "undefined") {
|
|
varLSform.addModule("LSformElement_mail",this);
|
|
}
|
|
},
|
|
|
|
initialiseLSformElement_mail: function(el) {
|
|
if (typeof(el) == 'undefined') {
|
|
el = document;
|
|
}
|
|
el.getElements('img.LSformElement_mail_btn').each(function(btn) {
|
|
btn.addEvent('click',this.onBtnClick.bind(this,btn));
|
|
}, this);
|
|
},
|
|
|
|
reinitialize: function(el) {
|
|
this.initialiseLSformElement_mail(el);
|
|
},
|
|
|
|
onBtnClick: function(btn) {
|
|
var href = btn.getParent().getFirst().href;
|
|
if (typeof(href)=="undefined") {
|
|
href = 'mailto:'+btn.getParent().getFirst().value;
|
|
}
|
|
if (href!="") {
|
|
location.href = href;
|
|
}
|
|
}
|
|
});
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
varLSformElement_mail = new LSformElement_mail();
|
|
});
|