From c3fd3b8c47f261b5436d98775b07e1ccfe83f4ee Mon Sep 17 00:00:00 2001 From: "chencongzhi520@gmail.com" Date: Sat, 5 Jan 2013 02:04:58 +0000 Subject: [PATCH] * finish task#1063. --- module/bug/js/view.js | 4 ---- module/story/js/view.js | 4 ---- module/task/js/view.js | 4 ---- module/testcase/js/view.js | 4 ---- www/js/my.full.js | 13 +++++++++++++ 5 files changed, 13 insertions(+), 16 deletions(-) delete mode 100644 module/bug/js/view.js delete mode 100644 module/story/js/view.js diff --git a/module/bug/js/view.js b/module/bug/js/view.js deleted file mode 100644 index c6e0d959f4..0000000000 --- a/module/bug/js/view.js +++ /dev/null @@ -1,4 +0,0 @@ -function setComment() -{ - $('#comment').toggle(); -} diff --git a/module/story/js/view.js b/module/story/js/view.js deleted file mode 100644 index c6e0d959f4..0000000000 --- a/module/story/js/view.js +++ /dev/null @@ -1,4 +0,0 @@ -function setComment() -{ - $('#comment').toggle(); -} diff --git a/module/task/js/view.js b/module/task/js/view.js index 5f249b68bb..27a9d91402 100644 --- a/module/task/js/view.js +++ b/module/task/js/view.js @@ -4,7 +4,3 @@ function assign(taskID, assignedTo) $('.assign').height(40); $('.assign').load(createLink('user', 'ajaxGetUser', 'taskID=' + taskID + '&assignedTo=' + assignedTo)); } -function setComment() -{ - $('#comment').toggle(); -} diff --git a/module/testcase/js/view.js b/module/testcase/js/view.js index 039ba61bd9..32dfed919d 100755 --- a/module/testcase/js/view.js +++ b/module/testcase/js/view.js @@ -3,7 +3,3 @@ $(document).ready(function() $(".runCase").colorbox({width:900, height:600, iframe:true, transition:'none'}); $(".results").colorbox({width:900, height:600, iframe:true, transition:'none'}); }) -function setComment() -{ - $('#comment').toggle(); -} diff --git a/www/js/my.full.js b/www/js/my.full.js index 593abf9677..3ddaec5d9e 100644 --- a/www/js/my.full.js +++ b/www/js/my.full.js @@ -567,6 +567,19 @@ function setMailto(mailto, contactListID) $('#' + mailto).val(users); }); } + +/** + * Set comment. + * + * @access public + * @return void + */ +function setComment() +{ + $('#comment').toggle(); + $('#comment textarea').focus(); +} + /** * Auto checked the checkbox of a row. *