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.
There can be situations when Drupal.settings differ from what JS code (e.g. in behaviors) expects. The example is AJAX request which replaces the page content and modifies Drupal.settings accordingly.
The code in locale.datepicker.js expect that Drupal.settings.jquery.ui.datepicker exists, but it can be absent for some reasons. I suggest to add checks before addressing it.
Comment | File | Size | Author |
---|---|---|---|
#4 | D8-locale_datepicker_js_settings-2530052-4.patch | 671 bytes | maximpodorov |
#1 | D7-locale_datepicker_js_settings-2530052-1.patch | 634 bytes | maximpodorov |
Comments
Comment #1
maximpodorov CreditAttribution: maximpodorov commentedComment #2
cilefen CreditAttribution: cilefen commentedDrupal 8 has practically the same code so if the same thing could happen, this must be fixed there first according to the backport policy.
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
maximpodorov CreditAttribution: maximpodorov commentedThis patch is for Drupal 8.
Comment #5
droplet CreditAttribution: droplet commentedShouldn't it start as default value if no extra settings.
Comment #14
quietone CreditAttribution: quietone as a volunteer commentedI think this is outdated locale.datepicker was removed in Oct 2019, #3072906: Deprecate and remove jQuery UI datepicker
Therefore, closing as outdated. If this is incorrect reopen the issue, by setting the status to 'Active', and add a comment explaining what still needs to be done.
Thanks!
Comment #15
maximpodorov CreditAttribution: maximpodorov commentedI think the we can return to fixing Drupal 7.