From 6dcfd48d06ec708d29ab646136e6ed1f0961d9bf Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 17 Dec 2009 06:32:51 +0000 Subject: [PATCH] * move some functions from page to this file. --- www/js/my.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/js/my.js b/www/js/my.js index 5c9e43ffbf..2dc72756d0 100644 --- a/www/js/my.js +++ b/www/js/my.js @@ -60,6 +60,20 @@ function setNowrapObjTitle() }) } +/* 选择产品。*/ +function switchProduct(productID) +{ + link = createLink('product', 'browse', 'productID=' + productID); + location.href=link; +} + +/* 选择项目。*/ +function switchProject(projectID) +{ + link = createLink('project', 'browse', 'projectID=' + projectID); + location.href=link; +} + /* 自动执行的代码。*/ $(document).ready(function() {