Project

General

Profile

Actions

Bug #28220

closed

Preview with preview button not possible since 49d8f25 (page, list and template module)

Added by Philipp Gampe over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2011-07-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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);
                                            }
                                        }
                                    }


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #28280: Line breaks in XLF translation causes JS errorClosed2011-07-18

Actions
Actions

Also available in: Atom PDF