From ec3606bc593029fbb7c6cb83b41ebfedfa10454e Mon Sep 17 00:00:00 2001 From: Alexander O'Neill Date: Mon, 18 Jun 2018 00:08:10 -0300 Subject: [PATCH] Revert "Temporarily remove custom footnote labels." This reverts commit 7128ba2fe7a95af4f67a20ceff9ad47bfc54a447. --- bibcite_footnotes.module | 5 +++-- js/plugins/reference_footnotes/dialogs/footnotes.js | 13 ++++++++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/bibcite_footnotes.module b/bibcite_footnotes.module index 3ab6db5..f72a0d6 100644 --- a/bibcite_footnotes.module +++ b/bibcite_footnotes.module @@ -82,6 +82,7 @@ function bibcite_footnotes_theme_footnote_list($footnotes) { $str .= $fn['text'] . "\n"; } } - + $str .= "\nThat's all, folks"; return $str; -} + +} \ No newline at end of file diff --git a/js/plugins/reference_footnotes/dialogs/footnotes.js b/js/plugins/reference_footnotes/dialogs/footnotes.js index 137504b..ae525da 100644 --- a/js/plugins/reference_footnotes/dialogs/footnotes.js +++ b/js/plugins/reference_footnotes/dialogs/footnotes.js @@ -20,6 +20,17 @@ if (isEdit) this.setValue(element.getText()); } + }, + { + id: 'value', + type: 'text', + label: Drupal.t('Value :'), + labelLayout: 'horizontal', + style: 'float:left;width:100px;', + setup: function (element) { + if (isEdit) + this.setValue(element.getAttribute('value')); + } } ], } @@ -32,7 +43,7 @@ this.setupContent( this.realObj ); }, onOk : function() { - CKEDITOR.plugins.reference_footnotes.createFootnote( editor, this.realObj, this.getValueOf('info', 'reference_footnote'), null); + CKEDITOR.plugins.reference_footnotes.createFootnote( editor, this.realObj, this.getValueOf('info', 'reference_footnote'), this.getValueOf('info', 'value')); delete this.fakeObj; delete this.realObj; }