* Code for bug#20875.

This commit is contained in:
xieqiyu
2022-03-28 13:52:42 +08:00
parent f500822991
commit f72da77a5d
3 changed files with 15 additions and 12 deletions
+7 -8
View File
@@ -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&section=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';?>