mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-02 14:18:33 +02: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
|
* @return String
|
||||||
*/
|
*/
|
||||||
public function FieldHolder($properties = array()) {
|
public function FieldHolder($properties = array()) {
|
||||||
|
$this->setAttribute('data-add-url', '\''.Controller::join_links($this->Link('addfield').'\''));
|
||||||
return $this->renderWith("FieldEditor");
|
return $this->renderWith("FieldEditor");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user