Closed (fixed)
Project:
Advertisement
Version:
11.x-dev
Component:
ad module
Priority:
Minor
Category:
Task
Assigned:
Reporter:
Created:
9 Jul 2025 at 08:03 UTC
Updated:
17 Sep 2025 at 09:54 UTC
Jump to comment: Most recent
The module does not use a lot of JS, but still uses jQuery which should not be required. Instead replace it by plain JS.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
anybody@lrwebks thinks it's too heavy for him :)
Comment #5
anybody@lrwebks it's not that hard as you think, please review and test manually by time.
Guess it's a great chance to learn how it works (and be less in fear then for the future :))
Comment #6
anybodyPS: My implementation is untested, so please review and try carefully!
Comment #7
anybody@grevil: Please review code-wise.
@lrwebks please test if this works as expected and nothing is broken
Comment #8
anybodyComment #9
lrwebks commented@anybody: Tested it with multiple different ad types and it works as expected! Even the problem I had personally, where the ads would only display for regular users and not admins, seems to have resolved itself. That leads me to believe it might actually have been a JQuery+Drupal quirk as well… Who knows?
Comment #10
lrwebks commentedRe #4 by the way: The solution you have implemented is totally understandable to me and I can definitely grasp the fetch API. But converting that myself would have certainly wasted more worker hours than it should! So, glad that someone else took care of it.
Comment #11
lrwebks commentedCode-wise, this also looks good to me!
Comment #13
lrwebks commented