mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Merge remote-tracking branch 'origin/delete_conditional_questions' into 2025.9-test
This commit is contained in:
commit
bd06f1ff7d
@ -3448,6 +3448,11 @@ define([
|
||||
};
|
||||
};
|
||||
var removeQuestion = function (content, uid) {
|
||||
if (content.form[uid].type === 'section') {
|
||||
content.form[uid].opts.questions.forEach(function(subQuestionUid) {
|
||||
delete content.form[subQuestionUid];
|
||||
})
|
||||
}
|
||||
delete content.form[uid];
|
||||
var idx = content.order.indexOf(uid);
|
||||
if (idx !== -1) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user