Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Our clients and project team felt it would be really useful to include a "Manage selected preset" link when editing JW Player settings. This speeds up the process for allowing maintainers to quickly get to the preset they most likely want to edit.
I'll attached the patch in a minute for review.
Comment | File | Size | Author |
---|---|---|---|
#8 | interdiff-2713679-6-8.txt | 3.44 KB | johnchque |
#8 | add_managed_selected-2713679-8.patch | 3.59 KB | johnchque |
| |||
#6 | add_managed_selected-2713679-6.patch | 1.11 KB | johnchque |
#2 | jw_player-managed_selected_preset-2713679-2.patch | 1.04 KB | ron_s |
Comments
Comment #2
ron_s CreditAttribution: ron_s commentedHere is the patch for review... this is a very simple addition. Thanks.
Comment #4
BerdirThis could be a bit confusing if you change the setting, but that seems acceptable and not worth to account for.
Committed.
Comment #5
ron_s CreditAttribution: ron_s commentedYes, I agree it could be... here are three ideas we considered:
1) Use the word "current" in the link, such as "Manage current preset" or "Manage currently saved preset".
2) Add text after the link that says "(only available when saved)".
3) We've done this before with other modules, and would definitely work...
#attach
an Ajax callback to theselect
, and automatically change the link on the fly. :-)Your thoughts? #3?
Comment #6
johnchqueAdded extra code for fitting better d8 version.
Comment #8
johnchqueMade some changes, added some extra checks and fixed tests.
Comment #10
Berdirah, looks like you have the preview states fix here.
Committed, thanks.