mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Delete only selected answers in forms
This commit is contained in:
parent
600771682a
commit
97fde60e84
@ -227,6 +227,7 @@ define([
|
||||
}).nThen;
|
||||
var toDelete = [];
|
||||
obj.forEach(function (answer) {
|
||||
if (answer.uid !== data.uid) { return; }
|
||||
n = n(function (waitFor) {
|
||||
var hash = answer.hash;
|
||||
var h = nacl.util.decodeUTF8(hash);
|
||||
|
||||
@ -3050,7 +3050,7 @@ define([
|
||||
var sframeChan = framework._.sfCommon.getSframeChannel();
|
||||
sframeChan.query("Q_FORM_DELETE_ANSWER", {
|
||||
channel: content.answers.channel,
|
||||
hash: answers._hash
|
||||
uid: uid
|
||||
}, function (err, obj) {
|
||||
if (obj && obj.error) {
|
||||
console.error(obj.error);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user