Commit 3f42d3ea authored by quicksketch's avatar quicksketch

Adding context to behavior selector (again).

parent 0d72309d
......@@ -45,7 +45,7 @@ Drupal.behaviors.filefieldButtons = function(context) {
* Open links to files within the node form in a new window.
Drupal.behaviors.filefieldPreviewLinks = function(context) {
$('div.filefield-element div.widget-preview a').click(Drupal.filefield.openInNewWindow).attr('target', '_blank');
$('div.filefield-element div.widget-preview a', context).click(Drupal.filefield.openInNewWindow).attr('target', '_blank');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment