View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004715 | OXID eShop (all versions) | 1.09. Integrations: Facebook, Trusted Shops, Shop lupe, Econda | public | 2012-11-18 20:33 | 2017-12-01 16:49 |
Reporter | WBL_BjoernLange | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Summary | 0004715: Sideeffect of widget/facebook/init.tpl and oxscript | ||||
Description | The capture [{capture name="facebookInit"}] [{oxscript include="js/libs/cookie/jquery.cookie.js"}] [{assign var="sFbAppId" value=$oViewConf->getFbAppId()}] [{assign var="sLocale" value="FACEBOOK_LOCALE"|oxmultilangassign}] [{assign var="sLoginUrl" value=$oView->getLink()|oxaddparams:"fblogin=1"}] [{assign var="sLogoutUrl" value=$oViewConf->getLogoutLink()}] [{oxscript add="$('.oxfbenable').click( function() { oxFacebook.showFbWidgets('`$sFbAppId`','`$sLocale`','`$sLoginUrl`','`$sLogoutUrl`'); return false;});"}] [{oxscript add='jQuery(".oxfbinfo").click(function() {jQuery("#fbModal").reveal();})'}] [{/capture}] [{oxscript add="`$smarty.capture.facebookInit`"}] Has no output and so smarty_function_oxscript thinks, that the javascript must be echoed. This oxscript-call with an empty string as the add-parameter, is like the oxscript-Call in the layout-File for outputting the javascript, because "if ( $params['add'] ) {" evaluates to false with an empty string. | ||||
Tags | Facebook, JavaScript | ||||
Theme | Not defined | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||