Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I've update Jquery to 1.7 version (#1067290: Fix jQuery 1.7 for Drupal 6) and faced a little problem in Drupal.dhtmlMenu.cookieSet()
function.
Drupal.dhtmlMenu.cookieSet = function() {
var expanded = new Array();
$('li.expanded').each(function() {
expanded.push($(this).find('a:first').attr('id').substr(5));
});
document.cookie = 'dhtml_menu=' + expanded.join(',') + ';path=/';
}
In 1.3 version of Jquery .attr('id')
returned empty string if id
wasn't defined. But in recent versions it returns undefined
.
So we should check the return before call .substr() method.
Comment | File | Size | Author |
---|---|---|---|
#1 | jquery1.7_capability-1364882-1.patch | 581 bytes | Leksat |
Comments
Comment #1
Leksat CreditAttribution: Leksat commentedComment #2
vuilI closed the issue as Closed (outdated) because it is for unsupported 6.x version of Drupal.
Thanks to everyone for your contribution time!