Permalink
Browse files

Latest FlexForms.

  • Loading branch information...
cubiclesoft committed Aug 10, 2018
1 parent 3d10ee6 commit 8eaeac607d59caf49b466bec20bc2a21e900c2c4
Showing with 15 additions and 9 deletions.
  1. +15 −9 support/flex_forms.php
View
@@ -78,6 +78,11 @@ public function SetCSSOutput($name)
$this->state["cssoutput"][$name] = true;
}
public function SetVersion($newversion)
{
$this->version = urlencode((string)$newversion);
}
public function SetSecretKey($secretkey)
{
$this->secretkey = (string)$secretkey;
@@ -88,11 +93,6 @@ public function SetTokenExtraInfo($extrainfo)
$this->extrainfo = (string)$extrainfo;
}
public function SetVersion($newversion)
{
$this->version = urlencode((string)$newversion);
}
public function CreateSecurityToken($action, $extra = "")
{
if ($this->secretkey === false)
@@ -1117,11 +1117,11 @@ protected function ProcessSubmit(&$options)
<?php
}
protected function Finalize()
public function OutputFlexFormsJS($scripttag = true)
{
// Output FlexForms Javascript. External dependencies are not allowed here.
if ($scripttag) echo "<script type=\"text/javascript\">\n";
?>
<script type="text/javascript">
window.FlexForms = window.FlexForms || {
version: '<?php echo self::JSSafe($this->version); ?>',
@@ -1263,8 +1263,14 @@ function regevent(event) {
}
}
};
</script>
<?php
if ($scripttag) echo "</script>\n";
}
protected function Finalize()
{
// Output FlexForms Javascript. External dependencies are not allowed here.
$this->OutputFlexFormsJS(!$this->state["ajax"]);
// Queue up jQuery and jQuery UI. Even though these are added last, they end up being output first.
$this->OutputJQuery(true);

0 comments on commit 8eaeac6

Please sign in to comment.