diff --git a/module/story/css/view.css b/module/story/css/view.css index 782054d7ad..5e4b4ddabe 100644 --- a/module/story/css/view.css +++ b/module/story/css/view.css @@ -11,5 +11,4 @@ .linkStoryTitle {white-space: nowrap; text-overflow: ellipsis; overflow: hidden;} .linkStoryTr > th {width: 90px;} .linkStoryTr > td {padding-left: 0px !important;} -.removeButton {margin-left: -10px;} .resolution {white-space: nowrap; overflow: hidden;} diff --git a/module/story/js/view.js b/module/story/js/view.js index 9a215855b9..b40eee1b83 100644 --- a/module/story/js/view.js +++ b/module/story/js/view.js @@ -9,17 +9,14 @@ $(function() /* Add for task #5385. */ if(config.onlybody == 'yes') $('.main-actions').css('width', '100%') - $('#unlinkStory').click(function() + $('.legendStories').mouseover(function() { - if($('.removeButton').hasClass('hide')) - { - $('.removeButton').removeClass('hide'); - $(this).text(cancel); - } - else - { - $('.removeButton').addClass('hide'); - $(this).text(unlink); - } - }) + $(this).parent('ul').find('a.removeButton').addClass('hide'); + $(this).find('.removeButton').removeClass('hide'); + }); + + $('.legendStories').mouseout(function() + { + $(this).find('.removeButton').addClass('hide'); + }); }); diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index a02a1c8bee..456a984ce2 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -448,13 +448,12 @@ foreach($relations as $item) $relation[$item->id] = $item->title; foreach($relation as $id => $title) { - echo "