diff --git a/module/todo/js/view.js b/module/todo/js/view.js index a51ea6e595..3cb4211edc 100644 --- a/module/todo/js/view.js +++ b/module/todo/js/view.js @@ -48,3 +48,25 @@ $(function() parent.location.href = link; }) }); + +function createProduct() +{ + var onlybody = config.onlybody; + config.onlybody = 'no'; + + var link = createLink('product', 'create'); + + config.onlybody = onlybody; + parent.location.href = link; +} + +function createProject() +{ + var onlybody = config.onlybody; + config.onlybody = 'no'; + + var link = createLink('project', 'create'); + + config.onlybody = onlybody; + parent.location.href = link; +} diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php index 3f27311fce..54c8ad698d 100644 --- a/module/todo/view/view.html.php +++ b/module/todo/view/view.html.php @@ -198,10 +198,19 @@ @@ -214,11 +223,20 @@