Add date and time in filename when saving chat history

master
Daniel Berteaud 10 years ago
parent 098dd94f16
commit 4f6040226e
  1. 3
      public/js/vroom.js

@ -2083,7 +2083,8 @@ function initVroom(room) {
}); });
$('#saveChat').click(function(){ $('#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 // Suspend/Play MoH

Loading…
Cancel
Save