2008-02-08 18:39:24 +01:00
|
|
|
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');
|
2008-10-09 03:31:33 +02:00
|
|
|
td.imgEdit.src = varLSdefault.imagePath('view.png');
|
2008-02-08 18:39:24 +01:00
|
|
|
td.imgEdit.injectInside(td);
|
|
|
|
},
|
|
|
|
|
|
|
|
onTdLSobjectListNamesOut: function(td) {
|
2008-07-05 22:28:49 +02:00
|
|
|
td.imgEdit.destroy();
|
2008-02-08 18:39:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
window.addEvent(window.ie ? 'load' : 'domready', function() {
|
|
|
|
varLSview = new LSview();
|
|
|
|
});
|