Bug #41327

jsInline removes closing brackets

Added by Simon Schaufelberger over 8 years ago. Updated over 2 years ago.

Status:
Accepted
Priority:
Must have
Assignee:
Category:
TypoScript
Target version:
-
Start date:
2012-09-24
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
nightmare
Is Regression:
No
Sprint Focus:

Description

this code does NOT work;

    jsInline {
        10 = TEXT
        10.value (
            jquery(document).ready(function($) {
                $('.pagination li').hover(
                    function(){$(this).not('.current').find('em').stop().animate({left: "0px"}, 300)},
                    function(){$(this).not('.current').find('em').stop().animate({left: "-270px"}, 300)}
                );
            });
        )
    }

but this one does (notice the last line):
    jsInline {
        10 = TEXT
        10.value (
            jquery(document).ready(function($) {
                $('.pagination li').hover(
                    function(){$(this).not('.current').find('em').stop().animate({left: "0px"}, 300)},
                    function(){$(this).not('.current').find('em').stop().animate({left: "-270px"}, 300)});});
        )
    }

i guess TYPO3 somehow interprets the last closing brackets as the closing bracket for the 10.value which is really strange.


Related issues

Related to TYPO3 Core - Bug #76447: TypoScript Parse BugNew2016-06-03

Actions

Also available in: Atom PDF