Bug #41327
Updated by Simon Schaufelberger over 2 years ago
this code does NOT work: <pre> page.jsInline 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)} function(){} ); ); }); }); ) ) } </pre> broken output: <pre> jquery(document).ready(function($) { $('.pagination li').hover( function(){} function(){$(this).not('.current').find('em').stop().animate({left: "0px"}, 300)}, function(){$(this).not('.current').find('em').stop().animate({left: "-270px"}, 300)} </pre> but this one does (notice the last line): <pre> page.jsInline jsInline { 10 = TEXT 10.value ( jquery(document).ready(function($) { $('.pagination li').hover( function(){});}); function(){$(this).not('.current').find('em').stop().animate({left: "0px"}, 300)}, function(){$(this).not('.current').find('em').stop().animate({left: "-270px"}, 300)});}); ) ) } </pre> i guess TYPO3 somehow interprets the last closing brackets as the closing bracket for the 10.value which is really strange.