From 7bfc02e122a6f043be5b03bc91ecb4d87e9afc15 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Sun, 10 Nov 2013 12:49:02 -0500 Subject: [PATCH] Track typing activity in HTML editor --- program/js/editor.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/program/js/editor.js b/program/js/editor.js index b349c9c..df3d412 100644 --- a/program/js/editor.js +++ b/program/js/editor.js @@ -61,6 +61,9 @@ if (!active) rcmail.spellcheck_state(); }); + ed.onKeyPress.add(function(ed, e) { + rcmail.compose_type_activity++; + }); } } @@ -162,7 +165,7 @@ for (i in files) { att = files[i]; if (att.complete && att.mimetype.startsWith('image/')) { - list.push([att.name, rcmail.env.comm_path+'&_action=display-attachment&_file='+i+'&_id='+rcmail.env.compose_id]); + list.push([att.name, rcmail.env.comm_path+'&_id='+rcmail.env.compose_id+'&_action=display-attachment&_file='+i]); } } -- Gitblit v1.9.1