From e5d692a148758cba6838f1ca1e00291ce15aad27 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Fri, 18 Dec 2009 08:56:03 +0000 Subject: [PATCH] + add switchAccount(), used in user view feature. --- trunk/www/js/my.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/trunk/www/js/my.js b/trunk/www/js/my.js index 8e0c2bb5b1..30cbd9a2e7 100644 --- a/trunk/www/js/my.js +++ b/trunk/www/js/my.js @@ -85,6 +85,14 @@ function switchProject(projectID) location.href=link; } +/* 选择用户。*/ +function switchAccount(account) +{ + link = createLink('user', 'view', 'account=' + account); + location.href=link; +} + + /* 自动执行的代码。*/ $(document).ready(function() {