mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +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');
|
$tr = $(this).prevAll('div').children('table').find('>tbody>tr:last');
|
||||||
match = $tr.find('td>input').attr('name').match(/item_(\d+)_(\d+)/);
|
match = $tr.find('td>input').attr('name').match(/item_(\d+)_(\d+)/);
|
||||||
if(!match) return;
|
if(!match || match[2] == 1) return;
|
||||||
|
|
||||||
$tr.remove();
|
$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))
|
||||||
if((!isset($args->poll) || !is_array($args->poll) || !count($args->poll)) && $vars->add_item != '2')
|
|
||||||
{
|
{
|
||||||
throw new Rhymix\Framework\Exception('cmd_null_item');
|
throw new Rhymix\Framework\Exception('cmd_null_item');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue