diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-06 21:41:27 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2006-12-06 21:41:27 +0000 |
| commit | 8860e71e5c02e36b1eb292b86e2d3f2ce5ec252f (patch) | |
| tree | 3a926650cbc0b6170cd00142bb050da63ac97a2d /roundcubemail/program/js | |
| parent | a66915f63c8b263d36a18e0361176ed251e6fe9a (diff) | |
Preview pane and marking as read (#1484132)
git-svn-id: https://svn.roundcube.net/trunk@400 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 497598016..d47f4278e 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -157,6 +157,7 @@ function rcube_webmail() { this.enable_command('compose', 'add-contact', false); parent.rcmail.show_messageframe(true); + parent.rcmail.mark_message('read', this.uid); } if ((this.env.action=='show' || this.env.action=='preview') && this.env.blockedobjects) @@ -298,9 +299,9 @@ function rcube_webmail() // start interval for keep-alive/recent_check signal this.start_keepalive = function() { - if (this.env.keep_alive && this.task=='mail' && this.gui_objects.messagelist) + if (this.env.keep_alive && !this.env.framed && this.task=='mail' && this.gui_objects.messagelist) this._int = setInterval(this.ref+'.check_for_recent()', this.env.keep_alive * 1000); - else if (this.env.keep_alive && this.task!='login') + else if (this.env.keep_alive && !this.env.framed && this.task!='login') this._int = setInterval(this.ref+'.send_keep_alive()', this.env.keep_alive * 1000); } @@ -1434,9 +1435,14 @@ function rcube_webmail() for (var n=0; n<selection.length; n++) { id = selection[n]; - a_uids[a_uids.length] = id; + if ((flag=='read' && this.message_list.rows[id].unread) || (flag=='unread' && !this.message_list.rows[id].unread)) + a_uids[a_uids.length] = id; } } + + // nothing to do + if (!a_uids.length) + return; switch (flag) { |
