File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2104,12 +2104,16 @@ $(document).ready(function () {
21042104 } ) ;
21052105
21062106 $ ( '.issue-action' ) . click ( function ( ) {
2107- var action = this . dataset . action
2108- var elementId = this . dataset . elementId
2109- var issueIDs = $ ( '.issue-checkbox' ) . children ( 'input:checked' ) . map ( function ( ) {
2107+ let action = this . dataset . action ;
2108+ let elementId = this . dataset . elementId ;
2109+ let issueIDs = $ ( '.issue-checkbox' ) . children ( 'input:checked' ) . map ( function ( ) {
21102110 return this . dataset . issueId ;
21112111 } ) . get ( ) . join ( ) ;
2112- var url = this . dataset . url
2112+ let url = this . dataset . url ;
2113+ if ( elementId === '0' && url . substr ( - 9 ) === '/assignee' ) {
2114+ elementId = '' ;
2115+ action = 'clear' ;
2116+ }
21132117 updateIssuesMeta ( url , action , issueIDs , elementId ) . then ( reload ) ;
21142118 } ) ;
21152119
You can’t perform that action at this time.
0 commit comments