diff options
author | 2019-08-16 02:57:38 +0800 | |
---|---|---|
committer | 2019-08-16 01:57:38 +0700 | |
commit | 436405ede71c48095570e456faf9712c3859110f (patch) | |
tree | b6f53b039a3ba3c7146a7cd83d6ca8eb934d03d6 /source/features/batch-open-issues.tsx | |
parent | 51c8d6699afb8540304412df194ec262c503ab23 (diff) | |
download | refined-github-436405ede71c48095570e456faf9712c3859110f.tar.gz refined-github-436405ede71c48095570e456faf9712c3859110f.tar.zst refined-github-436405ede71c48095570e456faf9712c3859110f.zip |
Fix `batch-open-issues` on glboal discussion list (#2343)
* Fix `batch-open-issues` on glboal discussion list
* Shorten
Diffstat (limited to 'source/features/batch-open-issues.tsx')
-rw-r--r-- | source/features/batch-open-issues.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/features/batch-open-issues.tsx b/source/features/batch-open-issues.tsx index 9d1be6f7..6499c899 100644 --- a/source/features/batch-open-issues.tsx +++ b/source/features/batch-open-issues.tsx @@ -12,9 +12,10 @@ function getUrlFromItem(checkbox: Element): string { } function openIssues(): void { + const modifier = features.isGlobalDiscussionList() ? '' : ' + div '; const issues = select.all([ - '#js-issues-toolbar.triage-mode + div [name="issues[]"]:checked', // Get checked checkboxes - '#js-issues-toolbar:not(.triage-mode) + div .js-issue-row' // Or all items + `#js-issues-toolbar.triage-mode ${modifier} [name="issues[]"]:checked`, // Get checked checkboxes + `#js-issues-toolbar:not(.triage-mode) ${modifier} .js-issue-row` // Or all items ].join(',')); if ( |