* Modify batch create story action form start ID.
This commit is contained in:
@@ -133,15 +133,16 @@ $(function()
|
||||
|
||||
$('#batchCreateForm').batchActionForm(
|
||||
{
|
||||
idEnd: <?php echo max((empty($titles) ? 0 : count($titles)), 9)?>,
|
||||
idStart: 1,
|
||||
idEnd: <?php echo max((empty($titles) ? 1 : count($titles)), 10)?>,
|
||||
rowCreator: function($row, index)
|
||||
{
|
||||
$row.find('select.chosen,select.picker-select').each(function()
|
||||
{
|
||||
var $select = $(this);
|
||||
if($select.hasClass('picker-select')) $select.parent().find('.picker').remove();
|
||||
if(index == 0) $select.find("option[value='ditto']").remove();
|
||||
if(index > 0) $select.val('ditto');
|
||||
if(index == 1) $select.find("option[value='ditto']").remove();
|
||||
if(index > 1) $select.val('ditto');
|
||||
if($select.attr('id').indexOf('branch') >= 0) $select.val('<?php echo $branch;?>')
|
||||
$select.chosen();
|
||||
setTimeout(function()
|
||||
|
||||
Reference in New Issue
Block a user