| | |
| | | }; |
| | | |
| | | |
| | | // write to the document/window title |
| | | this.set_pagetitle = function(title) |
| | | { |
| | | if (title && document.title) |
| | | document.title = title; |
| | | } |
| | | |
| | | |
| | | // display a system message |
| | | this.display_message = function(msg, type, hold) |
| | | { |
| | |
| | | if (!this.gui_objects.mailboxlist) |
| | | return false; |
| | | |
| | | if (mbox==this.env.mailbox) |
| | | set_title = true; |
| | | |
| | | var reg, text_obj; |
| | | var item = this.get_folder_li(mbox); |
| | | mbox = String(mbox).toLowerCase().replace(this.identifier_expr, ''); |
| | |
| | | if (set_title && document.title) |
| | | { |
| | | var doc_title = String(document.title); |
| | | var new_title = ""; |
| | | |
| | | if (count && doc_title.match(reg)) |
| | | document.title = doc_title.replace(reg, '('+count+') '); |
| | | new_title = doc_title.replace(reg, '('+count+') '); |
| | | else if (count) |
| | | document.title = '('+count+') '+doc_title; |
| | | new_title = '('+count+') '+doc_title; |
| | | else |
| | | document.title = doc_title.replace(reg, ''); |
| | | new_title = doc_title.replace(reg, ''); |
| | | |
| | | this.set_pagetitle(new_title); |
| | | } |
| | | }; |
| | | |
| | |
| | | ctype = ctype_array[0]; |
| | | } |
| | | |
| | | this.set_busy(false); |
| | | if (request_obj.__lock) |
| | | this.set_busy(false); |
| | | |
| | | console.log(request_obj.get_text()); |
| | | |
| | |
| | | } |
| | | |
| | | this.set_busy(true, 'checkingmail'); |
| | | var d = new Date(); |
| | | this.http_request('check-recent', '_t='+d.getTime()); |
| | | this.http_request('check-recent', '_t='+(new Date().getTime()), true); |
| | | }; |
| | | |
| | | |