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 @@ -2137,12 +2137,16 @@ $(document).ready(function () {
2137
2137
} ) ;
2138
2138
2139
2139
$ ( '.issue-action' ) . click ( function ( ) {
2140
- var action = this . dataset . action
2141
- var elementId = this . dataset . elementId
2142
- var issueIDs = $ ( '.issue-checkbox' ) . children ( 'input:checked' ) . map ( function ( ) {
2140
+ let action = this . dataset . action ;
2141
+ let elementId = this . dataset . elementId ;
2142
+ let issueIDs = $ ( '.issue-checkbox' ) . children ( 'input:checked' ) . map ( function ( ) {
2143
2143
return this . dataset . issueId ;
2144
2144
} ) . get ( ) . join ( ) ;
2145
- var url = this . dataset . url
2145
+ let url = this . dataset . url ;
2146
+ if ( elementId === '0' && url . substr ( - 9 ) === '/assignee' ) {
2147
+ elementId = '' ;
2148
+ action = 'clear' ;
2149
+ }
2146
2150
updateIssuesMeta ( url , action , issueIDs , elementId ) . then ( reload ) ;
2147
2151
} ) ;
2148
2152
You can’t perform that action at this time.
0 commit comments