From c063208af7b0e949d2e5702b95f0e40ca557ccdc Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Thu, 31 Dec 2009 05:51:57 +0000 Subject: [PATCH] * when copy the story title, use lastIndexOf(). --- trunk/module/task/view/create.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/module/task/view/create.html.php b/trunk/module/task/view/create.html.php index b9dab28d45..5e32022882 100644 --- a/trunk/module/task/view/create.html.php +++ b/trunk/module/task/view/create.html.php @@ -77,7 +77,7 @@ function copyStoryTitle() { var storyTitle = $('#story option:selected').text(); - storyTitle = storyTitle.substr(storyTitle.indexOf('/') + 1); + storyTitle = storyTitle.substr(storyTitle.lastIndexOf('/') + 1); $('#name').attr('value', storyTitle); }