diff --git a/js/coffee.js b/js/coffee.js index cb46ec7..2811870 100644 --- a/js/coffee.js +++ b/js/coffee.js @@ -26,21 +26,21 @@ else { initSource.call(this); } } }); DrupalCoffee = DrupalCoffee || {}; Drupal.behaviors.coffee = { attach: function () { - $('body').once('coffee', function () { + $('body').once('coffee').each(function () { var body = $(this); DrupalCoffee.bg.appendTo(body).hide(); DrupalCoffee.wrapper.appendTo('body').addClass('hide-form'); DrupalCoffee.form .append(DrupalCoffee.label) .append(DrupalCoffee.field) .append(DrupalCoffee.results) .wrapInner('
') .appendTo(DrupalCoffee.wrapper);