Browse Source

Fix JS error on empty citations list.

8.x-1.x
Alexander O'Neill 6 years ago
parent
commit
27b1ef8b3b
  1. 2
      js/plugins/reference_footnotes/dialogs/footnotes.js

2
js/plugins/reference_footnotes/dialogs/footnotes.js

@ -14,7 +14,7 @@
{ {
id: 'reference', id: 'reference',
type: 'select', type: 'select',
items: [[" - None - ", 0]].concat(drupalSettings.bibcite_footnotes.references), items: [[" - None - ", 0]].concat(typeof(drupalSettings.bibcite_footnotes) !== 'undefined' ? drupalSettings.bibcite_footnotes.references : []),
label: Drupal.t('Reference Footnote item:'), label: Drupal.t('Reference Footnote item:'),
setup: function (element) { setup: function (element) {
if (isEdit) if (isEdit)

Loading…
Cancel
Save