mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR Setting the url where the javascript should call by ajax to add a field to the user defined form
This commit is contained in:
parent
368211c7e5
commit
d9ff70595f
@ -19,6 +19,7 @@ class FieldEditor extends FormField {
|
||||
* @return String
|
||||
*/
|
||||
public function FieldHolder($properties = array()) {
|
||||
$this->setAttribute('data-add-url', '\''.Controller::join_links($this->Link('addfield').'\''));
|
||||
return $this->renderWith("FieldEditor");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user