Ability to delete a stronger pad from readonly mode

This commit is contained in:
yflory
2017-10-12 11:41:53 +02:00
parent b28c1537e8
commit 95ad25973e
3 changed files with 8 additions and 5 deletions

View File

@@ -216,6 +216,12 @@ define([
});
sframeChan.on('Q_MOVE_TO_TRASH', function (data, cb) {
cb = cb || $.noop;
if (readOnly && hashes.editHash) {
var appPath = window.location.pathname;
Cryptpad.moveToTrash(cb, appPath + '#' + hashes.editHash);
return;
}
Cryptpad.moveToTrash(cb);
});