From 0938c545ace1f1f8d26cb3cfac23a5488cb3ddf0 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 23 Jun 2007 08:39:22 +0000 Subject: [PATCH] #687: Don't lose authentication when editing a long mail ChangeLog | 1 + templates/emails/send.tpl | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1865 839d8a87-29fc-0310-9880-83ba4fa771e5 --- ChangeLog | 1 + templates/emails/send.tpl | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3ebad65..9df6514 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ Bug/Wish: - #678: PlUpload filename detection -FRU * Emails: + - #687: Don't lose authentication when editing a long mail -FRU - #688: From name in the sending form -FRU * Profile: diff --git a/templates/emails/send.tpl b/templates/emails/send.tpl index 4165d11..042879f 100644 --- a/templates/emails/send.tpl +++ b/templates/emails/send.tpl @@ -54,6 +54,19 @@ return true; } + var doAuth = true; + function _keepAuth() { + doAuth = true; + } + + function keepAuth() { + if (doAuth) { + Ajax.update_html(null, "login", null); + doAuth = false; + setTimeout("_keepAuth()", 10000); + } + } + function _move(idFrom, idTo) { var from = document.getElementById(idFrom); var to = document.getElementById(idTo); @@ -219,7 +232,7 @@ -