Skip to content

Commit 43f4ac7

Browse files
committed
Load tabs.js for Wagtail < 7.1
1 parent b94cd46 commit 43f4ac7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## [Unreleased]
44

5+
## [0.17.1] - 2025-09-01
6+
7+
### Fixed
8+
9+
- Tabs not initialising for Wagtail < 7.1
10+
511
## [0.17.0] - 2025-08-20
612

713
### Added
@@ -340,6 +346,7 @@ Initial release
340346
---
341347

342348
[unreleased]: https://github.com/torchbox/wagtailmedia/compare/v0.16.0...HEAD
349+
[0.17.1]: https://github.com/torchbox/wagtailmedia/compare/v0.17.0...v0.17.1
343350
[0.17.0]: https://github.com/torchbox/wagtailmedia/compare/v0.16.0...v0.17.0
344351
[0.16.0]: https://github.com/torchbox/wagtailmedia/compare/v0.15.2...v0.16.0
345352
[0.15.2]: https://github.com/torchbox/wagtailmedia/compare/v0.15.1...v0.15.2

src/wagtailmedia/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.17.0"
1+
__version__ = "0.17.1"

src/wagtailmedia/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def render_js_init(self, id_, name, value):
4545

4646
@property
4747
def media(self):
48-
tab_js = ["wagtailmedia/js/tabs.js"] if WAGTAIL_VERSION >= (7, 1) else []
48+
tab_js = [] if WAGTAIL_VERSION >= (7, 1) else ["wagtailmedia/js/tabs.js"]
4949
js = [
5050
*tab_js,
5151
"wagtailmedia/js/media-chooser-modal.js",

0 commit comments

Comments
 (0)