From d9ff70595f786536515a12ef42b85157b83053c8 Mon Sep 17 00:00:00 2001 From: Stig Lindqvist Date: Mon, 7 May 2012 17:10:05 +1200 Subject: [PATCH] MINOR Setting the url where the javascript should call by ajax to add a field to the user defined form --- code/formfields/FieldEditor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/code/formfields/FieldEditor.php b/code/formfields/FieldEditor.php index 35a294c..d916db0 100755 --- a/code/formfields/FieldEditor.php +++ b/code/formfields/FieldEditor.php @@ -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"); }