| | |
| | | |
| | | for (var n in this.list_rows) { |
| | | if (!filter || this.list_rows[n][filter]==true) |
| | | this.last_selected = n; |
| | | this.highlight_row(n, true); |
| | | } |
| | | return true; |
| | |
| | | this.env.mailbox = mbox; |
| | | }; |
| | | |
| | | // for reordering column array, Konqueror workaround |
| | | this.set_message_coltypes = function(coltypes) |
| | | { |
| | | this.coltypes = coltypes; |
| | | } |
| | | |
| | | // create a table row in the message list |
| | | this.add_message_row = function(uid, cols, flags, attachment, attop) |
| | |
| | | row.appendChild(col); |
| | | |
| | | // add each submitted col |
| | | for (var c in cols) |
| | | { |
| | | for (var n = 0; n < this.coltypes.length; n++) |
| | | { |
| | | var c = this.coltypes[n]; |
| | | col = document.createElement('TD'); |
| | | col.className = String(c).toLowerCase(); |
| | | col.innerHTML = cols[c]; |
| | |
| | | { |
| | | if (!this.gui_objects.mailboxlist) |
| | | return false; |
| | | |
| | | |
| | | if (mbox==this.env.mailbox) |
| | | set_title = true; |
| | | |
| | | var item, reg, text_obj; |
| | | mbox = String(mbox).toLowerCase().replace(this.mbox_expression, ''); |
| | | item = document.getElementById('rcmbx'+mbox); |
| | |
| | | text_obj.innerHTML += ' ('+count+')'; |
| | | else |
| | | text_obj.innerHTML = text_obj.innerHTML.replace(reg, ''); |
| | | |
| | | |
| | | // set the right classes |
| | | this.set_classname(item, 'unread', count>0 ? true : false); |
| | | } |
| | | |
| | | // set unread count to window title |
| | | reg = /^\([0-9]+\)\s+/i; |
| | | if (set_title && count && document.title) |
| | | if (set_title && document.title) |
| | | { |
| | | var doc_title = String(document.title); |
| | | |
| | |
| | | document.title = '('+count+') '+doc_title; |
| | | else |
| | | document.title = doc_title.replace(reg, ''); |
| | | } |
| | | // remove unread count from window title |
| | | else if (document.title) |
| | | { |
| | | document.title = document.title.replace(reg, ''); |
| | | } |
| | | }; |
| | | |