#28220Preview with preview button not possible since 49d8f25 (page, list and template module)
Description
It seems that 49d8f25 (“[FEATURE] Show info if staged element is edited”) caused a regression.
After that revision it is not possible any more to click on the preview icon in the mentioned modules.
Web-View does work although.
The source looks pretty complete, so I guess there is just a JS error:
mod.php:283 Uncaught SyntaxError: Unexpected token ILLEGAL
preview.js:68 Uncaught TypeError: Cannot read property 'Workspaces' of undefined
Looking at the mentioned lines:
/*workspaces.preview.lll*/
TYPO3.LLL.Workspaces = {
visualPreview: 'Visual preview',
listView: 'List view',
livePreview: 'Live',
livePreviewDetail: 'Click this element to hide the workspace version and see the live version of the
mod.php:283 Uncaught SyntaxError: Unexpected token ILLEGAL
page.
',
workspacePreview: 'Workspace',
workspacePreviewDetail: 'Click this element to hide the live version and see the workspace version of the
page.
',
modeSlider: 'Slider',
modeVbox: 'Vertical',
modeHbox: 'Horizontal'
};
The second only is of course only a result of the first problem.
xtype: 'button',
id: 'sizeSliderButtonLive',
cls: 'sliderButton',
text: TYPO3.LLL.Workspaces.livePreview,
preview.js:68 Uncaught TypeError: Cannot read property 'Workspaces' of undefined
tooltip: TYPO3.LLL.Workspaces.livePreviewDetail,
width: 100,
listeners: {
click: {
fn: function () {
Ext.getCmp('sizeSlider').setValue(0);
}
}
}Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.