-
-
Notifications
You must be signed in to change notification settings - Fork 186
Refactor Url chooser without XHR call #3432
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
Conversation
mart-insiders
commented
Aug 29, 2024
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | comma separated list of tickets fixed by the PR |
c1bba76
to
1e616c4
Compare
1e616c4
to
d6e2094
Compare
d6e2094
to
5980707
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feature works well 👌 I've add a few comments and question but overall it looks alright!
Also can you rebase on the 7.2 branch and retarget the PR? I've already created the 7.2 release branch for the upcoming release!
src/Kunstmaan/NodeBundle/Form/EventListener/URLChooserFormSubscriber.php
Outdated
Show resolved
Hide resolved
src/Kunstmaan/NodeBundle/Form/EventListener/URLChooserLinkTypeSubscriber.php
Outdated
Show resolved
Hide resolved
if (field.name.indexOf($urlChooserName) !== -1 && field.name.indexOf('link_url') === -1) { | ||
values[field.name] = field.value; | ||
} | ||
// deprecated, use adaptUrl(e.target) when enable_improved_urlchooser becomes standard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain what is exactly deprecated? So I understand what to remove in 8.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The onclick event should trigger the function adaptUrl for the improved url chooser.
Everything below that is deprecated and only used for the current url chooser.
So, everything from r.222 var $form = $(this).closest('form'),
untill r.264 });
is deprecated
…Subscriber.php Co-authored-by: Jeroen Thora <[email protected]>
…criber.php Co-authored-by: Jeroen Thora <[email protected]>
b072f11
to
59ee05e
Compare
Thanks @mart-insiders! |