mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 10:29:07 +01:00
92701517d7
-> templates -> images -> css - Ajout d'un thème black en plus du thème par défaut
31 lines
974 B
JavaScript
31 lines
974 B
JavaScript
var LSview = new Class({
|
|
initialize: function(){
|
|
$$('td.LSobject-list-names').each(function(el) {
|
|
el.addEvent('click',this.onTdLSobjectListNamesClick.bind(this,el));
|
|
}, this);
|
|
$$('td.LSobject-list-names').each(function(el) {
|
|
el.addEvent('mouseenter',this.onTdLSobjectListNamesOver.bind(this,el));
|
|
}, this);
|
|
$$('td.LSobject-list-names').each(function(el) {
|
|
el.addEvent('mouseleave',this.onTdLSobjectListNamesOut.bind(this,el));
|
|
}, this);
|
|
},
|
|
|
|
onTdLSobjectListNamesClick: function(td) {
|
|
window.location=td.getFirst().href;
|
|
},
|
|
|
|
onTdLSobjectListNamesOver: function(td){
|
|
td.imgEdit = new Element('img');
|
|
td.imgEdit.src = varLSdefault.imagePath('view.png');
|
|
td.imgEdit.injectInside(td);
|
|
},
|
|
|
|
onTdLSobjectListNamesOut: function(td) {
|
|
td.imgEdit.destroy();
|
|
}
|
|
|
|
});
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
varLSview = new LSview();
|
|
});
|