BUG Document link hide/show bug

This commit is contained in:
Saophalkun Ponlu 2012-08-31 15:45:13 +12:00
parent 0abf20f577
commit d5107bce52
2 changed files with 3 additions and 2 deletions

View File

@ -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');
}

View File

@ -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){