Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobinTimman created an issue. See original summary.

RobinTimman’s picture

svenryen’s picture

Drupal comes with support for $.cookie() which we're now using in the 7.x branch. I recommend that 8.x is updated as well.

boazpoolman’s picture

Issue summary: View changes

Great patch!

Nicasso’s picture

I have a created a patch that uses $_cookie().

Martijn Houtman’s picture

Patch works for me!

  • svenryen committed 1ac98b4 on 8.x-1.x authored by Nicasso
    Issue #2890279 by Nicasso, RobinTimman: Cookie not saving cause of wrong...
svenryen’s picture

Status: Patch (to be ported) » Fixed

Thanks for the patch, Nicasso. I committed it now.

TommyChris’s picture

FileSize
333 bytes

I think this patch needs another modification, to add library dependency. Without it, the module don't worked for me.
Patch attached.

eu_cookie_compliance:
  version: 1.0
  js:
    js/eu_cookie_compliance.js: {}
  css:
    state:
      css/eu_cookie_compliance.css: {}
  dependencies:
    - core/jquery
    - core/drupal
    - core/drupalSettings
    - core/jquery.once
+    - core/jquery.cookie

  • svenryen committed c363bd8 on 8.x-1.x authored by TommyChris
    Issue #2890279 by Nicasso, RobinTimman, TommyChris, svenryen: Cookie not...
svenryen’s picture

Thanks, TommyChris!

svenryen’s picture

Status: Fixed » Closed (fixed)