[TASK] Remove breakOnError option from wizard
[Packages/TYPO3.CMS.git] / typo3 / sysext / form / Resources / Public / JavaScript / Wizard / Elements / Predefined / Email.js
1 Ext.namespace('TYPO3.Form.Wizard.Elements.Predefined');
2
3 /**
4 * The predefined EMAIL element
5 *
6 * @class TYPO3.Form.Wizard.Elements.Predefined.Email
7 * @extends TYPO3.Form.Wizard.Elements.Basic.Textline
8 */
9 TYPO3.Form.Wizard.Elements.Predefined.Email = Ext.extend(TYPO3.Form.Wizard.Elements.Basic.Textline, {
10 /**
11 * Initialize the component
12 */
13 initComponent: function() {
14 var config = {
15 configuration: {
16 attributes: {
17 name: 'email',
18 type: 'email'
19 },
20 label: {
21 value: TYPO3.l10n.localize('elements_label_email')
22 },
23 validation: {
24 required: {
25 showMessage: 1,
26 message: TYPO3.l10n.localize('tx_form_system_validate_required.message'),
27 error: TYPO3.l10n.localize('tx_form_system_validate_required.error')
28 },
29 email: {
30 showMessage: 1,
31 message: TYPO3.l10n.localize('tx_form_system_validate_email.message'),
32 error: TYPO3.l10n.localize('tx_form_system_validate_email.error')
33 }
34 }
35 }
36 };
37
38 // MERGE config
39 Ext.merge(this, config);
40
41 // call parent
42 TYPO3.Form.Wizard.Elements.Predefined.Email.superclass.initComponent.apply(this, arguments);
43 }
44 });
45
46 Ext.reg('typo3-form-wizard-elements-predefined-email', TYPO3.Form.Wizard.Elements.Predefined.Email);