WIP erase chat history button

This commit is contained in:
ansuz committed 2017-07-20 17:04:11 +02:00
1 parent 128d5b2c6d
commit dd98e2222a
2 files changed
+12 -5

No files matched your search

+5 -3
View File
@@ -289,9 +289,11 @@ define([
var $avatar = $('<div>', {'class': 'avatar'}).appendTo($header);
var $removeHistory = $('<button>', {
'class': 'remove-history'
}).text('remove chat history').click(function () {
var $removeHistory = $('<span>', {
'class': 'remove-history fa fa-eraser'
})
// TODO set title
.click(function () {
Cryptpad.confirm(common.Messages.contacts_confirmRemoveHistory, function (yes) {
if (!yes) { return; }
Cryptpad.clearOwnedChannel(data.channel, function (e) {