$(function()
{
if(canCreate)
{
link = createLink('story', 'create', 'productID=' + productID + "&branch=" + branch + '&moduleID=' + moduleID);
$('#modulemenu ul.nav li.right:first').before("
" + createStory + "");
}
/* Add for task #5385. */
if(config.onlybody == 'yes') $('.main-actions').css('width', '100%')
$('.legendStories').mouseover(function()
{
$(this).parent('ul').find('a.removeButton').addClass('hide');
$(this).find('.removeButton').removeClass('hide');
});
$('.legendStories').mouseout(function()
{
$(this).find('.removeButton').addClass('hide');
});
$('#legendStories').find('.removeButton').click(function()
{
$(this).closest('li').remove();
})
});