Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
assign formbuilder object to a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
meysampg committed May 23, 2017
1 parent 9b5ba6d commit 1396d77
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions FormBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function run()
}

/**
* @return string unique id of form builder
* @return string unique id of form builder
*/
public function getFBId()
{
Expand All @@ -90,8 +90,7 @@ private function getFBJs()
{

$str = "var {$this->getFBJsVariableElement()} = $('#{$this->getFBId()}');\n"
. "$({$this->getFBJsVariableElement()}).formBuilder({$this->getFBOptions()});\n"
. "var {$this->accessVariableName} = $('#{$this->getFBId()}');\n";
. "var {$this->accessVariableName} = $({$this->getFBJsVariableElement()}).formBuilder({$this->getFBOptions()});\n";

return $str;
}
Expand Down Expand Up @@ -165,7 +164,7 @@ private function arrayXmlEncode($options, $tag = 'field', $generateHeaderAndFoot
}

if (strlen($attributes)) {
$xmlString .= "</$tag>";
$xmlString .= "</$tag>";
}
}
}
Expand Down

0 comments on commit 1396d77

Please sign in to comment.