mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
TEMP: allow one option
This commit is contained in:
parent
690ba43271
commit
0fd0e336a0
2 changed files with 2 additions and 3 deletions
|
|
@ -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) return;
|
||||
if(!match || match[2] == 1) return;
|
||||
|
||||
$tr.remove();
|
||||
|
||||
|
|
|
|||
|
|
@ -100,8 +100,7 @@ class PollController extends Poll
|
|||
}
|
||||
}
|
||||
|
||||
// TEMP: allow empty poll if add item is on
|
||||
if((!isset($args->poll) || !is_array($args->poll) || !count($args->poll)) && $vars->add_item != '2')
|
||||
if(!isset($args->poll) || !is_array($args->poll) || !count($args->poll))
|
||||
{
|
||||
throw new Rhymix\Framework\Exception('cmd_null_item');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue