diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-28 09:33:40 -0700 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-03-28 09:33:40 -0700 |
commit | 966d3f310d0a39114d98ccb9623d3663478fd608 (patch) | |
tree | f3bd2c0613fd29b44fc655bba4f8c7affa6ef50d /modules/shortcut | |
parent | 3643ea884ae95b2f3b760eb6842a4275c757deca (diff) | |
download | brdo-966d3f310d0a39114d98ccb9623d3663478fd608.tar.gz brdo-966d3f310d0a39114d98ccb9623d3663478fd608.tar.bz2 |
Issue #1400310 by nod_, sun, m.stenta: Fixed Use of .parents() is really .closest().
Diffstat (limited to 'modules/shortcut')
-rw-r--r-- | modules/shortcut/shortcut.admin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shortcut/shortcut.admin.js b/modules/shortcut/shortcut.admin.js index dfb76cb06..5554e5a7c 100644 --- a/modules/shortcut/shortcut.admin.js +++ b/modules/shortcut/shortcut.admin.js @@ -106,7 +106,7 @@ Drupal.behaviors.shortcutDrag = { Drupal.behaviors.newSet = { attach: function (context, settings) { var selectDefault = function() { - $($(this).parents('div.form-item').get(1)).find('> label > input').attr('checked', 'checked'); + $(this).closest('form').find('.form-item-set .form-type-radio:last input').attr('checked', 'checked'); }; $('div.form-item-new input').focus(selectDefault).keyup(selectDefault); } |