[TYPO3-core] RFC: Feature #15745: Integrate generic notification methods to show windows and dialogs based on ExtJS

Oliver Hader oliver at typo3.org
Sat Sep 18 17:09:52 CEST 2010


This is an SVN patch request.

Type: Feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=15745

Branches: Trunk

Problem:
There are already some places where ExtJS is used to display modal
windows and there will be some more in the future (e.g. as a result from
the workspaces team sprint in Wiesbaden).

Solution:
Thus, two new static functions are defined and placed in backend.php.

TYPO3.Window
TYPO3.Dialog

Every application can use windows and dialogs like e.g.
top.TYPO3.Window.getWindow({
  title: 'Title',
  html: 'Message',
  id: 'cssId',
  identifier: 'individualIdentifier',
});

and select it by the given identifier again, like e.g.
top.TYPO3.Window.getActiveWindow('individualIdentifier').close();

Dialogs can be shown for "information", "question", "error" and
"warning" with e.g.
top.TYPO3.Window.getInformationDialog({
  title: 'Title',
  msg: 'Message'
});

olly
-- 
Oliver Hader
TYPO3 v4 Core Team Leader
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015745.patch
Type: text/x-patch
Size: 4952 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100918/a045c4c0/attachment.bin>


More information about the TYPO3-team-core mailing list