Commit 0d72309d authored by quicksketch's avatar quicksketch

Adding context to behavior selector.

parent ecb8d9b1
......@@ -37,7 +37,7 @@ Drupal.behaviors.filefieldValidateAutoAttach = function(context) {
* Prevent FileField uploads when using buttons not intended to upload.
*/
Drupal.behaviors.filefieldButtons = function(context) {
$('input.form-submit').bind('mousedown', Drupal.filefield.disableFields);
$('input.form-submit', context).bind('mousedown', Drupal.filefield.disableFields);
$('div.filefield-element input.form-submit', context).bind('mousedown', Drupal.filefield.progressBar);
};
......
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