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. *