* when copy the story title, use lastIndexOf().

This commit is contained in:
wangchunsheng
2009-12-31 05:51:57 +00:00
parent 12a002ce91
commit c063208af7

View File

@@ -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);
}
</script>