[PR #9309] [MERGED] Multiselect #13451

Closed
opened 2025-12-29 22:27:29 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/9309
Author: @CroogQT
Created: 5/6/2022
Status: Merged
Merged: 6/17/2022
Merged by: @jeremystretch

Base: developHead: multiselect


📝 Commits (10+)

  • 2979a64 add file, skeleton from "select all"
  • 2e38e62 create store to store previously checked element
  • ae7ddec now exports previousPkCheck.ts
  • c536944 now exports multiselect function
  • db14206 clicking a PkCheckbox updates state
  • ea9258d added main multi-select function
  • 1493c92 silly text highlight workaround...
  • 3effa37 click event calls multiselect function
  • ef29bff is this supposed to be ignored?
  • 11f7e30 fixed text deselection and refactor

📊 Changes

6 files changed (+123 additions, -9 deletions)

View changed files

📝 netbox/project-static/dist/netbox.js (+7 -7)
📝 netbox/project-static/dist/netbox.js.map (+2 -2)
📝 netbox/project-static/src/buttons/index.ts (+2 -0)
netbox/project-static/src/buttons/selectMultiple.ts (+105 -0)
📝 netbox/project-static/src/stores/index.ts (+1 -0)
netbox/project-static/src/stores/previousPkCheck.ts (+6 -0)

📄 Description

Fixes: #8704

Allows a user to shift click a checkbox to set the "checked" value of all check boxes between their selection and their previous selection to the new value of their selected checkbox.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/9309 **Author:** [@CroogQT](https://github.com/CroogQT) **Created:** 5/6/2022 **Status:** ✅ Merged **Merged:** 6/17/2022 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop` ← **Head:** `multiselect` --- ### 📝 Commits (10+) - [`2979a64`](https://github.com/netbox-community/netbox/commit/2979a64ce3c0983f2aee7c7a49141bb5c092e1b1) add file, skeleton from "select all" - [`2e38e62`](https://github.com/netbox-community/netbox/commit/2e38e621017e8d6de0057c8c767b60aee9423063) create store to store previously checked element - [`ae7ddec`](https://github.com/netbox-community/netbox/commit/ae7ddecaa65f7ccff69352fb9d75bf775b6c0b6c) now exports previousPkCheck.ts - [`c536944`](https://github.com/netbox-community/netbox/commit/c536944a101d87bd38f1c33d1c14a0788e453251) now exports multiselect function - [`db14206`](https://github.com/netbox-community/netbox/commit/db142061ffc77cd16bcc89df199f070697873694) clicking a PkCheckbox updates state - [`ea9258d`](https://github.com/netbox-community/netbox/commit/ea9258d36cabaf5de25c45f65fd92bfc5959bbe0) added main multi-select function - [`1493c92`](https://github.com/netbox-community/netbox/commit/1493c920fd1a49f8aac53584abcb61c24a49078f) silly text highlight workaround... - [`3effa37`](https://github.com/netbox-community/netbox/commit/3effa37fa77a5123c65dd85e6f87599b99b3b133) click event calls multiselect function - [`ef29bff`](https://github.com/netbox-community/netbox/commit/ef29bffb723c86b51f1ae00ae65b59786ae5298c) is this supposed to be ignored? - [`11f7e30`](https://github.com/netbox-community/netbox/commit/11f7e3099d603f0391e51a14ee2d172f9c70ee4c) fixed text deselection and refactor ### 📊 Changes **6 files changed** (+123 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `netbox/project-static/dist/netbox.js` (+7 -7) 📝 `netbox/project-static/dist/netbox.js.map` (+2 -2) 📝 `netbox/project-static/src/buttons/index.ts` (+2 -0) ➕ `netbox/project-static/src/buttons/selectMultiple.ts` (+105 -0) 📝 `netbox/project-static/src/stores/index.ts` (+1 -0) ➕ `netbox/project-static/src/stores/previousPkCheck.ts` (+6 -0) </details> ### 📄 Description ### Fixes: #8704 Allows a user to shift click a checkbox to set the "checked" value of all check boxes between their selection and their previous selection to the new value of their selected checkbox. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:27:29 +01:00
adam closed this issue 2025-12-29 22:27:30 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13451