LSview : Remove onMouseOver icon

This commit is contained in:
Benjamin Renard 2014-10-02 18:14:01 +02:00
parent 3f67942606
commit b66cca5ae5

View file

@ -12,12 +12,6 @@ var LSview = new Class({
$$('td.LSobject-list-names').each(function(el) { $$('td.LSobject-list-names').each(function(el) {
el.addEvent('click',this.onTdLSobjectListNamesClick.bind(this,el)); el.addEvent('click',this.onTdLSobjectListNamesClick.bind(this,el));
}, this); }, 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);
$$('a.LSobject-list-actions').each(function(el) { $$('a.LSobject-list-actions').each(function(el) {
var checkRemove = /remove\.php.*/; var checkRemove = /remove\.php.*/;
if (checkRemove.exec(el.href)) { if (checkRemove.exec(el.href)) {
@ -51,17 +45,6 @@ var LSview = new Class({
window.location=td.getFirst().href; window.location=td.getFirst().href;
}, },
onTdLSobjectListNamesOver: function(td){
td.imgEdit = new Element('img');
td.imgEdit.src = varLSdefault.imagePath('view');
td.imgEdit.injectInside(td);
},
onTdLSobjectListNamesOut: function(td) {
if(td.imgEdit)
td.imgEdit.destroy();
},
onRemoveListBtnClick: function(event,a) { onRemoveListBtnClick: function(event,a) {
Event(event).stop(); Event(event).stop();
if (!this._confirmBoxOpen) { if (!this._confirmBoxOpen) {