Author Topic: Company field in the contact list  (Read 3586 times)

jmc

  • Newbie
  • *
  • Posts: 2
    • View Profile
Company field in the contact list
« on: April 19, 2011, 06:46:59 pm »
I thought a Company field could be of use in the contact list in order to sort by company, so I edited the /root-folder/public/assets/javascript/og/ContactManager.js a bit to include it. The new file is attached, and I edited the one from version 1.7.4.

I don't know if the renderCompany (line 86) function was there for anything, but I replaced it with a modified copy of the renderContactName function, and in the ColumnModel (line 216) added the "company" section (lines 252 to 257).

However, I don't know how to make remote sorting work with this. If I try to sort by company it sorts by name with remoteSort (line 25) on.
I turned it off to sort locally and it works perfectly, but if anyone knows how to fix it I'd appreciate it.

Also, what are the advantages of remote sorting?