Ability to delete a stronger pad from readonly mode
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user