From 690ba43271ec79b243eda06dfaf4828ea16af24c Mon Sep 17 00:00:00 2001 From: Lastorder <18280396+Lastorder-DC@users.noreply.github.com> Date: Fri, 22 Nov 2024 09:31:27 +0900 Subject: [PATCH] TEMP: allow delete all options --- modules/editor/components/poll_maker/tpl/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/editor/components/poll_maker/tpl/popup.js b/modules/editor/components/poll_maker/tpl/popup.js index fa878ceee..c2f58afdc 100644 --- a/modules/editor/components/poll_maker/tpl/popup.js +++ b/modules/editor/components/poll_maker/tpl/popup.js @@ -70,7 +70,7 @@ jQuery(function($){ $tr = $(this).prevAll('div').children('table').find('>tbody>tr:last'); match = $tr.find('td>input').attr('name').match(/item_(\d+)_(\d+)/); - if(!match || match[2] == 2) return; + if(!match) return; $tr.remove();