mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUGFIX: fixing in-content the insert dialog
This commit is contained in:
parent
96daa58bc3
commit
e9ee4c85a7
@ -17,7 +17,7 @@ class DocumentHtmlEditorFieldToolbar extends Extension {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$source = $linkType->getSource();
|
$source = $linkType->getSource();
|
||||||
$source['documentopt'] = 'Download a document';
|
$source['document'] = 'Download a document';
|
||||||
$linkType->setSource($source);
|
$linkType->setSource($source);
|
||||||
|
|
||||||
$addExistingField = new DMSDocumentAddExistingField('AddExisting', 'Add Existing');
|
$addExistingField = new DMSDocumentAddExistingField('AddExisting', 'Add Existing');
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
var form = $('form.htmleditorfield-linkform');
|
var form = $('form.htmleditorfield-linkform');
|
||||||
var show = false;
|
var show = false;
|
||||||
|
|
||||||
if (this.attr('value') === 'documentopt') {
|
if (this.attr('value') === 'document') {
|
||||||
if (this.is(':checked')) {
|
if (this.is(':checked')) {
|
||||||
show = true;
|
show = true;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div id="documentopt" class="ss-add field treedropdown searchable">
|
<div id="document" class="ss-add field treedropdown searchable">
|
||||||
<div class="document-add-existing <% if useFieldContext %>field<% else %>link-editor-context<% end_if %>">
|
<div class="document-add-existing <% if useFieldContext %>field<% else %>link-editor-context<% end_if %>">
|
||||||
<% if useFieldContext %>
|
<% if useFieldContext %>
|
||||||
<h3>
|
<h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user