Merge branch 'master_xieqiyu_20875' into 'master'
* Fix bug#20875. See merge request easycorp/zentaopms!2564
This commit is contained in:
@@ -17,10 +17,14 @@
|
||||
<?php echo $lang->bug->batchCreate;?>
|
||||
</h2>
|
||||
<div class="pull-right btn-toolbar">
|
||||
<?php if(common::hasPriv('file', 'uploadImages')) echo html::a($this->createLink('file', 'uploadImages', 'module=bug¶ms=' . helper::safe64Encode("productID=$productID&executionID=$executionID&moduleID=$moduleID")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn btn-primary' data-width='70%'")?>
|
||||
<?php if(common::hasPriv('file', 'uploadImages')) echo html::a($this->createLink('file', 'uploadImages', 'module=bug¶ms=' . helper::safe64Encode("productID=$productID&branch=$branch&executionID=$executionID&moduleID=$moduleID")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn btn-primary' data-width='70%'")?>
|
||||
<button type='button' data-toggle='modal' data-target="#importLinesModal" class="btn btn-primary"><?php echo $lang->pasteText;?></button>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=bug§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php if(isonlybody()):?>
|
||||
<div class="divider"></div>
|
||||
<button id="closeModal" type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -219,5 +223,18 @@
|
||||
</tbody>
|
||||
</table>
|
||||
<?php js::set('branch', $branch)?>
|
||||
<?php if(isonlybody()):?>
|
||||
<style>
|
||||
.body-modal .main-header {padding-right: 0px;}
|
||||
.btn-toolbar > .dropdown {margin: 0px;}
|
||||
</style>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
parent.$('#triggerModal .modal-content .modal-header .close').hide();
|
||||
$('#closeModal').on('click', function(){window.parent.$.closeModal();})
|
||||
})
|
||||
</script>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -50,7 +50,11 @@ $(function()
|
||||
{
|
||||
line = $.trim(line);
|
||||
if (!line.length) return;
|
||||
if (!$lastRow) $row = $form.find('tbody>tr:first');
|
||||
if (!$lastRow)
|
||||
{
|
||||
$row = $form.find('tbody>tr .title-import').first().closest('tr');
|
||||
if(!$row && batchForm) $row = batchForm.createRow();
|
||||
}
|
||||
else $row = $lastRow.next();
|
||||
while ($row.length && $row.find('.title-import').val().length)
|
||||
{
|
||||
|
||||
@@ -19,6 +19,10 @@
|
||||
<button type='button' data-toggle='modal' data-target="#importLinesModal" class="btn btn-primary"><?php echo $lang->pasteText;?></button>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=story§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php if(isonlybody()):?>
|
||||
<div class="divider"></div>
|
||||
<button id="closeModal" type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -150,7 +154,7 @@ $(function()
|
||||
$select.next('.chosen-container').find('.chosen-drop').width($select.closest('td').width() + 50);
|
||||
}, 200);
|
||||
});
|
||||
var storyTitle = storyTitles && storyTitles[index];
|
||||
var storyTitle = storyTitles && storyTitles[index - 1];
|
||||
if (storyTitle !== undefined && storyTitle !== null)
|
||||
{
|
||||
$row.find('.input-story-title').val(storyTitle).after('<input type="hidden" name="uploadImage[' + index + ']" id="uploadImage[' + index + ']" value="' + imageTitles[storyTitle] + '">');
|
||||
@@ -172,5 +176,18 @@ $(function()
|
||||
</script>
|
||||
<?php if(isset($execution)) js::set('execution', $execution);?>
|
||||
<?php js::set('storyType', $type);?>
|
||||
<?php if(isonlybody()):?>
|
||||
<style>
|
||||
.body-modal .main-header {padding-right: 0px;}
|
||||
.btn-toolbar > .dropdown {margin: 0px;}
|
||||
</style>
|
||||
<script>
|
||||
$(function()
|
||||
{
|
||||
parent.$('#triggerModal .modal-content .modal-header .close').hide();
|
||||
$('#closeModal').on('click', function(){window.parent.$.closeModal();})
|
||||
})
|
||||
</script>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
<?php include '../../common/view/footer.html.php';?>
|
||||
|
||||
@@ -33,7 +33,10 @@
|
||||
<button type='button' data-toggle='modal' data-target="#importLinesModal" class="btn btn-primary"><?php echo $lang->pasteText;?></button>
|
||||
<?php $customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=task§ion=custom&key=batchCreateFields')?>
|
||||
<?php include '../../common/view/customfield.html.php';?>
|
||||
<?php if(isonlybody()):?>
|
||||
<div class="divider"></div>
|
||||
<button id="closeModal" type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
@@ -235,15 +238,11 @@
|
||||
<?php js::set('storyID', $storyID);?>
|
||||
<?php if(isonlybody()):?>
|
||||
<style>
|
||||
.body-modal .main-header{padding-right:0px;}
|
||||
.btn-toolbar>.dropdown{margin:0px;}
|
||||
.body-modal .main-header {padding-right: 0px;}
|
||||
.btn-toolbar > .dropdown {margin: 0px;}
|
||||
</style>
|
||||
<?php $html = '<div class="divider"></div><button id="closeModal" type="button" class="btn btn-link" data-dismiss="modal"><i class="icon icon-close"></i></button>';?><script>
|
||||
$(function()
|
||||
{
|
||||
parent.$('#triggerModal .modal-content .modal-header .close').hide();
|
||||
$('#mainContent .main-header .pull-right.btn-toolbar').append(<?php echo json_encode($html)?>);
|
||||
})
|
||||
<script>
|
||||
$(function(){parent.$('#triggerModal .modal-content .modal-header .close').hide();});
|
||||
</script>
|
||||
<?php endif;?>
|
||||
<?php include '../../common/view/pastetext.html.php';?>
|
||||
|
||||
Reference in New Issue
Block a user