WebsiteBaker Support (2.11.x) > Modules

Miniform & JS in template

(1/1)

dbs:
Hello, in miniform 0.9 i had added below the miniform template html code a javascript block.
This worked fine.

After upgrade to miniform 0.12 the code output in frontend has been corrupted.
E.g. it changed from

--- Code: ---<script>
$(document).ready(function(){
my code ...
--- End code ---
to

--- Code: ---<script>
$(document).ready(function())
     })
my code ...
--- End code ---

I removed the js block from the template an created a code2 section below the miniform section. So it works again.
But i want have html and js together in the miniform template. Is it possible?

dbs:
For users with the same problem, the solution is:
miniform v0.14

or
change view.php line 327
from

--- Code: ---$template = preg_replace('#\{(.*?)\}#s', '', $template);
--- End code ---
to

--- Code: ---$template = preg_replace('#\{(?=\S)(.*?)\}#s', '', $template);
--- End code ---

thanks to Ruud  (Y)

Navigation

[0] Message Index

Go to full version