mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-19 08:39:06 +01:00
32 lines
966 B
JavaScript
32 lines
966 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 = 'templates/images/view.png';
|
||
|
td.imgEdit.injectInside(td);
|
||
|
},
|
||
|
|
||
|
onTdLSobjectListNamesOut: function(td) {
|
||
|
td.imgEdit.remove();
|
||
|
}
|
||
|
|
||
|
});
|
||
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
||
|
varLSview = new LSview();
|
||
|
});
|