Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #14736: Enable HTMX navigation globally #15158

Merged
merged 26 commits into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6d06152
Enable HTMX boosting
jeremystretch Feb 2, 2024
a742f2e
Refactor HTMX properties for tables
jeremystretch Feb 2, 2024
4f3f214
Fix dashboard object list widget
jeremystretch Feb 14, 2024
fa4f489
Disable scrolling to page content
jeremystretch Feb 14, 2024
a78fb80
Fix initialization of TomSelect dropdowns after HTMX loading
jeremystretch Feb 14, 2024
881b994
Replace formaction properties with hx-post
jeremystretch Feb 16, 2024
d224f73
Fix quick search field on object list view
jeremystretch Feb 16, 2024
648a14a
Reinitialize copy-to-clipboard buttons upon HTMX load
jeremystretch Feb 16, 2024
c377d83
Merge branch 'feature' into 14736-htmx
jeremystretch Feb 29, 2024
236c561
Disable scrolling effect for intra-page navigation
jeremystretch Feb 29, 2024
e735be7
Merge branch 'feature' into 14736-htmx
jeremystretch Mar 18, 2024
7d86d09
Introduce user preference for toggling HTMX navigation
jeremystretch Mar 18, 2024
4d85e9c
Enable HTMX navigation only when selected by user
jeremystretch Mar 18, 2024
8ba5963
Pass htmx_navigation context
jeremystretch Mar 18, 2024
3061e16
Merge branch 'feature' into 14736-htmx
jeremystretch Mar 25, 2024
a36467c
Fix display of confirmation form when deleting an object
jeremystretch Mar 25, 2024
ebab17d
Disable HTMX boosting for rack elevation SVG downloads
jeremystretch Mar 25, 2024
16ceaef
Fix dyanmic form rendering
jeremystretch Mar 25, 2024
e37c943
Introduce htmx_boost template tag; enable HTMX for user menu
jeremystretch Mar 25, 2024
1af5799
Use out-of-band sap to update footer stamp
jeremystretch Mar 25, 2024
4c92397
Fix display of toasts after form submission
jeremystretch Mar 25, 2024
ec364c6
Fix user preference selection
jeremystretch Mar 25, 2024
5fcc0fc
Misc cleanup
jeremystretch Mar 25, 2024
6c540e5
Rename render_partial() to htmx_partial()
jeremystretch Mar 27, 2024
41f21d3
Add docstring to htmx_boost template tag
jeremystretch Mar 27, 2024
c7a63e0
Disable HTMX for user preferences form to force a full page refresh o…
jeremystretch Mar 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'feature' into 14736-htmx
  • Loading branch information
jeremystretch committed Mar 18, 2024
commit e735be7167c1e6cfd19bceb4ab97b88ad92ddb3a
2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions netbox/project-static/dist/netbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/src/select/dynamic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function renderItem(data: TomOption, escape: typeof escape_html) {

// Initialize <select> elements which are populated via a REST API call
export function initDynamicSelects(): void {
for (const select of getElements<HTMLSelectElement>('select:not(.tomselected).api-select')) {
for (const select of getElements<HTMLSelectElement>('select.api-select:not(.tomselected)')) {
new DynamicTomSelect(select, {
...config,
valueField: VALUE_FIELD,
Expand Down
4 changes: 2 additions & 2 deletions netbox/project-static/src/select/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getElements } from '../util';
// Initialize <select> elements with statically-defined options
export function initStaticSelects(): void {
for (const select of getElements<HTMLSelectElement>(
'select:not(.tomselected):not(.api-select):not(.color-select)',
'select:not(.tomselected):not(.no-ts):not([size]):not(.api-select):not(.color-select)',
)) {
new TomSelect(select, {
...config,
Expand All @@ -24,7 +24,7 @@ export function initColorSelects(): void {
)}"></span> ${escape(item.text)}</div>`;
}

for (const select of getElements<HTMLSelectElement>('select:not(.tomselected).color-select')) {
for (const select of getElements<HTMLSelectElement>('select.color-select:not(.tomselected)')) {
new TomSelect(select, {
...config,
maxOptions: undefined,
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.