diff options
author | David Rothstein <drothstein@gmail.com> | 2012-07-29 21:50:43 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-07-29 21:50:43 -0400 |
commit | 349ea196f4f4f692a817e90e39a34f094a2ac7f5 (patch) | |
tree | d8ecbf4f29b91d1229f3c52e3c0fb1d9d92dfaf9 /misc | |
parent | 4d26c301ac838915c5a4e328096e8ae8809ea903 (diff) | |
download | brdo-349ea196f4f4f692a817e90e39a34f094a2ac7f5.tar.gz brdo-349ea196f4f4f692a817e90e39a34f094a2ac7f5.tar.bz2 |
Issue #1507954 by nod_, boombatower | silinor: Fixed Global selector in states.js brakes some scripts.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/states.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/states.js b/misc/states.js index 00eeba17b..594f8187b 100644 --- a/misc/states.js +++ b/misc/states.js @@ -16,10 +16,11 @@ var states = Drupal.states = { */ Drupal.behaviors.states = { attach: function (context, settings) { + var $context = $(context); for (var selector in settings.states) { for (var state in settings.states[selector]) { new states.Dependent({ - element: $(selector), + element: $context.find(selector), state: states.State.sanitize(state), constraints: settings.states[selector][state] }); |