* code for task#1780.

This commit is contained in:
xia0ta0
2014-03-07 14:32:44 +08:00
parent de40baa427
commit 2afdcdd5cc
+1 -1
View File
@@ -7,7 +7,7 @@ function copyStoryTitle(num)
{
var storyTitle = $('#story' + num).find('option:selected').text();
startPosition = storyTitle.indexOf(':') + 1;
endPosition = storyTitle.lastIndexOf('(');
endPosition = storyTitle.lastIndexOf('[');
storyTitle = storyTitle.substr(startPosition, endPosition - startPosition);
$('#story' + num).parent().next().find('input:first').val(storyTitle);
}