* fix bug #18934
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
$(function()
|
||||
{
|
||||
if(!isAjaxRequest)
|
||||
{
|
||||
$(".modal-body .close").remove();
|
||||
$("#subHeader").remove();
|
||||
}
|
||||
});
|
||||
@@ -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;?>
|
||||
|
||||
Reference in New Issue
Block a user