- // disable delete
- parent.rcmail.set_button('delete', 'pas');
-
- // change the text for the add contact button
- var links = parent.document.getElementById('abooktoolbar').getElementsByTagName('A');
- for (i = 0; i < links.length; i++)
- {
- var onclickstring = new String(links[i].onclick);
- if (onclickstring.search('\"add\"') != -1)
- links[i].title = this.env.addcontact;
- }
- }
- // handle double click event
- else if (this.ldap_contact_rows && this.selection.length==1 && this.ldap_contact_rows[id].clicked)
- this.command('compose', this.ldap_contact_rows[id].obj.cells[1].innerHTML);
- else if (this.env.contentframe)
- {
- var elm = document.getElementById(this.env.contentframe);
- elm.style.visibility = 'hidden';
- }
- }
- else if (this.task=='settings')
- {
- if (this.selection.length==1)
- this.command('edit', this.selection[0]);
- }
-
- this.list_rows[id].clicked = true;
- setTimeout(this.ref+'.list_rows['+id+'].clicked=false;', this.dblclick_time);
-
- return false;
- };
-
-
-
- /*********************************************************/
- /********* (message) list functionality *********/
- /*********************************************************/
-
- // get next and previous rows that are not hidden
- this.get_next_row = function(){
- if (!this.list_rows) return false;
- var last_selected_row = this.list_rows[this.last_selected];
- var new_row = last_selected_row.obj.nextSibling;
- while (new_row && (new_row.nodeType != 1 || new_row.style.display == 'none')) {
- new_row = new_row.nextSibling;
- }
- return new_row;
- }
-
- this.get_prev_row = function(){
- if (!this.list_rows) return false;
- var last_selected_row = this.list_rows[this.last_selected];
- var new_row = last_selected_row.obj.previousSibling;
- while (new_row && (new_row.nodeType != 1 || new_row.style.display == 'none')) {
- new_row = new_row.previousSibling;
- }
- return new_row;
- }
-
- // highlight/unhighlight a row
- this.highlight_row = function(id, multiple)