mirror of
https://github.com/silverstripe/silverstripe-dms
synced 2024-10-22 14:05:56 +02:00
BUG Document link hide/show bug
This commit is contained in:
parent
0abf20f577
commit
d5107bce52
@ -41,6 +41,7 @@ class DMSDocumentAddExistingField extends CompositeField {
|
||||
|
||||
public function Field($properties = array()) {
|
||||
Requirements::javascript('dms/javascript/DMSDocumentAddExistingField.js');
|
||||
Requirements::javascript("dms/javascript/DocumentHtmlEditorFieldToolbar.js");
|
||||
|
||||
return $this->renderWith('DMSDocumentAddExistingField');
|
||||
}
|
||||
|
@ -18,9 +18,9 @@
|
||||
|
||||
//hide or show the additional document link addition tool
|
||||
if (show) {
|
||||
form.find('.ss-add.ss-upload').show();
|
||||
form.find('.ss-add').show();
|
||||
} else {
|
||||
form.find('.ss-add.ss-upload').hide();
|
||||
form.find('.ss-add').hide();
|
||||
}
|
||||
},
|
||||
onadd: function(e){
|
||||
|
Loading…
Reference in New Issue
Block a user