Hi all,
I need some help to modify the html content of messagelist columns.
Basically it is easy by using jquery:
$('#messagelist tbody tr td').each(function(){
var elem = $(this);
elem.html('modified content');
});
Unfortunately I loose event bindings when doing that. I think there are modifications in app.js necessary (using jquery .live() for event binding?). When looking into app.js(.src) I'm lost due to my limited javascript skills.
Any hints?
Regards,
List info: http://lists.roundcube.net/dev/ BT/aba52c80
On Mon, Sep 12, 2011 at 08:32, Roland Liebl roland@roland-liebl.de wrote:
Hi all,
I need some help to modify the html content of messagelist columns.
Basically it is easy by using jquery:
$('#messagelist tbody tr td').each(function(){ var elem = $(this); elem.html('modified content'); });
Unfortunately I loose event bindings when doing that. I think there are modifications in app.js necessary (using jquery .live() for event binding?). When looking into app.js(.src) I'm lost due to my limited javascript skills.
Event handlers for selection and dragging are set to the <tr> element and thus should not get lost. Other events are directly set to icons and if you replace them with your code it's correct that events no longer trigger for objects that don't exist anymore.
What exactly doesn't work anymore when you replace some cell content?
~Thomas _______________________________________________ List info: http://lists.roundcube.net/dev/ BT/aba52c80