From 4f6040226ec7891de10be198263b50af441ccf28 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 20 Jul 2014 11:35:28 +0200 Subject: [PATCH] Add date and time in filename when saving chat history --- public/js/vroom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/vroom.js b/public/js/vroom.js index 44e860d..f9165ce 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -2083,7 +2083,8 @@ function initVroom(room) { }); $('#saveChat').click(function(){ - downloadContent('VROOM Tchat (' + room + ').html', $('#chatHistory').html()); + var d = new Date; + downloadContent('VROOM Tchat (' + room + ') ' + d.toLocaleString() + '.html', $('#chatHistory').html()); }); // Suspend/Play MoH