diff --git a/code/cms/DocumentHtmlEditorFieldToolbar.php b/code/cms/DocumentHtmlEditorFieldToolbar.php index 38e5071..b866153 100644 --- a/code/cms/DocumentHtmlEditorFieldToolbar.php +++ b/code/cms/DocumentHtmlEditorFieldToolbar.php @@ -17,7 +17,7 @@ class DocumentHtmlEditorFieldToolbar extends Extension { } $source = $linkType->getSource(); - $source['documentopt'] = 'Download a document'; + $source['document'] = 'Download a document'; $linkType->setSource($source); $addExistingField = new DMSDocumentAddExistingField('AddExisting', 'Add Existing'); diff --git a/javascript/DocumentHtmlEditorFieldToolbar.js b/javascript/DocumentHtmlEditorFieldToolbar.js index e2c68b4..c73a59f 100644 --- a/javascript/DocumentHtmlEditorFieldToolbar.js +++ b/javascript/DocumentHtmlEditorFieldToolbar.js @@ -10,7 +10,7 @@ var form = $('form.htmleditorfield-linkform'); var show = false; - if (this.attr('value') === 'documentopt') { + if (this.attr('value') === 'document') { if (this.is(':checked')) { show = true; } diff --git a/templates/DMSDocumentAddExistingField.ss b/templates/DMSDocumentAddExistingField.ss index 225aaa1..f2f8b29 100644 --- a/templates/DMSDocumentAddExistingField.ss +++ b/templates/DMSDocumentAddExistingField.ss @@ -1,4 +1,4 @@ -