From 6aab932c265da43905766847954667de0d23c91a Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Thu, 24 May 2018 09:19:48 +0800 Subject: [PATCH] * Finish task #4314, #4315, #4316. --- module/todo/js/view.js | 22 ++++++++++++++++++++++ module/todo/view/view.html.php | 18 ++++++++++++++++++ 2 files changed, 40 insertions(+) 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 @@