This commit is contained in:
Zongjun Lan
2022-04-21 16:09:34 +08:00
parent 3b61e47ad8
commit 7e63a02e20
3 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -2646,7 +2646,8 @@ EOT;
if(empty($object))
{
$param = ($type == 'project' and $this->config->vision == 'lite') ? 'model=kanban' : '';
return print(js::locate(helper::createLink($type, 'create', $param)));
$methodName = $type == 'project' ? 'createGuide' : 'create';
return print(js::locate(helper::createLink($type, $methodName, $param)));
}
}
+8
View File
@@ -0,0 +1,8 @@
$(function()
{
if(!isAjaxRequest)
{
$(".modal-body .close").remove();
$("#subHeader").remove();
}
});
+7
View File
@@ -1,3 +1,7 @@
<?php js::set('isAjaxRequest', helper::isAjaxRequest());?>
<?php if(!helper::isAjaxRequest()): ?>
<?php include "../../common/view/header.html.php"?>
<?php endif;?>
<div class='modal-dialog' id='guideDialog'>
<style>
#guideDialog {width: 780px}
@@ -46,3 +50,6 @@ $('.createButton').on('click', function()
$.closeModal();
});
</script>
<?php if(!helper::isAjaxRequest()): ?>
<?php include "../../common/view/footer.html.php"?>
<?php endif;?>