doortts doortts 2018-04-12
two-column-mode: Support subtask click in the list
@e4188d7caea250072f307eaf908ae7edbcbf0cda
app/views/issue/partial_view_child.scala.html
--- app/views/issue/partial_view_child.scala.html
+++ app/views/issue/partial_view_child.scala.html
@@ -8,7 +8,7 @@
 
 <div class="issue-item @if(childIssue.id == parentIssue.id){selected-child}">
     <span class="state-label @state">@if(state == "closed"){<i class=" yobicon-checkmark">}</i></span>
-    <a href="@routes.IssueApp.issue(childIssue.project.owner, childIssue.project.name, childIssue.getNumber)">
+    <a class="title" href="@routes.IssueApp.issue(childIssue.project.owner, childIssue.project.name, childIssue.getNumber)">
         <span class="item-name"><span class="subtask-number">#@childIssue.getNumber</span> @childIssue.title@if(childIssue.assignee != null) { - @childIssue.assignee.user.getPureNameOnly}</span></a>
     <span class="font12 no-border-at-child">@common.commentAndVoterPairDisplay(childIssue, parentIssue.project)</span>
 </div>
public/javascripts/service/yobi.issue.List.js
--- public/javascripts/service/yobi.issue.List.js
+++ public/javascripts/service/yobi.issue.List.js
@@ -243,8 +243,9 @@
         }
 
         function _initShowChildList() {
-            $(".post-item").on("click", function(){
-                $(this).find(".child-issue-list").toggle();
+            $(".post-item").on("click", function(e){
+                $(this).find(".child-issue-list").show();
+                e.stopPropagation();
             });
         }
 
Add a comment
List