File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2104,12 +2104,16 @@ $(document).ready(function () {
2104
2104
} ) ;
2105
2105
2106
2106
$ ( '.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 ( ) {
2110
2110
return this . dataset . issueId ;
2111
2111
} ) . 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
+ }
2113
2117
updateIssuesMeta ( url , action , issueIDs , elementId ) . then ( reload ) ;
2114
2118
} ) ;
2115
2119
You can’t perform that action at this time.
0 commit comments