Issue #1419968 by nod_, tim.plunkett, droplet, cosmicdreams: Replace $('selector', domelement) with $(domelement).find('selector').

8.0.x
catch 2012-05-01 12:17:59 +09:00
parent 3102ae42c1
commit fd9a2104d0
2 changed files with 2 additions and 2 deletions

View File

@ -527,7 +527,7 @@ $(document).bind('state:checked', function(e) {
$(document).bind('state:collapsed', function(e) {
if (e.trigger) {
if ($(e.target).is('.collapsed') !== e.value) {
$(e.target).find$('> legend a').click();
$(e.target).find('> legend a').click();
}
}
});

View File

@ -12,7 +12,7 @@ Drupal.contextualLinks = Drupal.contextualLinks || {};
*/
Drupal.behaviors.contextualLinks = {
attach: function (context) {
$(context).find('div.contextual-links-wrapper').once('contextual-links', function () {
$(context).find('div.contextual').once('contextual-links', function () {
var $wrapper = $(this);
var $region = $wrapper.closest('.contextual-region');
var $links = $wrapper.find('ul');