From 3580ed5204e54d6959d1afcc089d2d2f7adbc612 Mon Sep 17 00:00:00 2001 From: tonio Date: Wed, 29 Dec 2010 09:36:09 +0100 Subject: [PATCH] fixed #85 Disabling automatic page refresh when selecting messages. --- extensions/webmail/templates/webmail/index.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/extensions/webmail/templates/webmail/index.html b/extensions/webmail/templates/webmail/index.html index 58b6c3f86..b084d849e 100644 --- a/extensions/webmail/templates/webmail/index.html +++ b/extensions/webmail/templates/webmail/index.html @@ -215,8 +215,17 @@ $$("tbody>tr").set("unselectable", "on"); var emails_table = new HtmlTable($("emails"), { - selectable: true, - shiftForMultiSelect: true + selectable: true, + shiftForMultiSelect: true + }).addEvents({ + rowFocus: function(tr) { + clearInterval(rtimer); + }, + rowUnfocus: function(tr) { + if (this._selectedRows.length == 0) { + rtimer = refreshFolder.periodical({{ refreshrate }}); + } + } }); bstart_dragging = function(item) {