footnotes_field.js 430 B

123456789101112
  1. (function ($) {
  2. Drupal.behaviors.footnotes = {
  3. attach: function (context, settings) {
  4. var footnotes_html = '';
  5. $('ul.footnotes').not('#footnotes-all ul.footnotes').each(function () {
  6. footnotes_html += $(this).html();
  7. });
  8. $('#footnotes-all').html('<ul class="footnotes">' + footnotes_html + '</ul>');
  9. $('ul.footnotes').not('#footnotes-all ul.footnotes').remove();
  10. }
  11. };
  12. })(jQuery);