js ending delimiter S3 auto literal behaviour is quite bulletproof

tests have proofed " } ;" and " };" and even "};" are interpreted correct!
This commit is contained in:
Ian 2012-12-07 18:00:52 +01:00
parent 7544348e08
commit 449367c7aa
6 changed files with 14 additions and 12 deletions

View File

@ -143,8 +143,9 @@
{$none}
{/if}
</fieldset>
{* Smarty 3 has a new auto literal option which is enabled by default.
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;' *}
{*** Smarty 3 has a new auto literal option which is enabled by default.
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;'
AS tests have proofed, ending javascript delimiters " } ;" and " };" and even "};" work fine as well. So back to origin. ***}
<script>
function sort_{$config_item}_Sequence() {
//var seq = DragDrop.serData('{$config_item}_group', null);

View File

@ -165,8 +165,9 @@
{if (!is_array($items) || empty($order_id))}
{$none}
{/if}
{* Smarty 3 has a new auto literal option which is enabled by default.
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;' *}
{*** Smarty 3 has a new auto literal option which is enabled by default.
When the { is surrounded by whitespace it is not interpreted as smarty delimiter but literal. e.g. ' } ;'
AS tests have proofed, ending javascript delimiters " } ;" and " };" and even "};" work fine as well. So back to origin. ***}
<script type="text/javascript">
function sort_{$config_item}_Sequence() {
//var seq = DragDrop.serData('{$config_item}_group', null);