It probably will be - I'm intending to rewrite my changes from scratch and although I'm 30 hours into the mods, this is first time I've waded through the Roundcube code.

As far as I can tell, it's not just the list code that needs changing for lists to co-exist - the core Roundcube mail/addressbook 'task' code that listens for e.g. 'select' events will need changing to be more discerning about where the event came from.

Thanks for the advice - it all helps.

Dr. I. J. Lewis
Director, University Computing Service
University of Cambridge
O: +44 1223 334702
M: +44 7774 017 590
(asst: Lori Klimaszewska lamk2@cam.ac.uk)

On 28 Mar 2012, at 08:10, Peter Overtoom <ps.overtoom@redheadtech.nl> wrote:

Isn't it a better idea to completely revise the "List" codes to allow 2 instances on one page instead of hacking in one change at the time? You could submit the changes to the main branch.



On Tue, Mar 27, 2012 at 8:17 PM, Ian Lewis <ijl20@cam.ac.uk> wrote:
My experimental effort in extending Roundcube to provide a 'contact-centric' email experience is progressing ok, although I'm doing some fairly major engineering... The net of it is to arrive at the layout shown in the attached screenshot - the 'contact-centric' view is reached by clicking on a contact name anywhere it appears (otherwise Roundcube still behaves as usual, with folders of emails being displayed in the preview pane.) Contact names appear in the contacts list, in the mail list display 'From:' column, and in the From, To, CC fields of emails. Emails are opened by clicking on the 'Subject', as opposed to anywhere on the entire row.

From the screenshot you can see I've got multiple 'lists' on the same page (I'm using an updated Larry style). I.e. contacts and mails, having taken the contacts list off the Larry compose page (thanks Thomas). But I'm dealing with clashes between the lists all the time - I've sorted out the basic 'select' events. Today's discovery is the 'pagenext' etc commands are conflicting between the lists (i.e. the pagenext button on the contact list and the mail list are triggering the same command).

Has anyone dealt with this issue before and have a recommended approach? At the moment I'm hacking fixes in as I go along but need to choose between giving the contact list and mail list different commands, or modifiy the receiving code to take note of which gui object the commands came from...

thanks...

Ian
--
Ian Lewis
Director, University Computing Service
University of Cambridge
office: +44 1223 334702
mobile: +44 7774 017590

_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev

_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev