Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
6557a29d
Commit
6557a29d
authored
Jan 18, 2018
by
Carsten Rose
Browse files
All FE 'typeahead' fields are set to 'autocomplete="off"'
parent
770e6e23
Changes
2
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
6557a29d
...
...
@@ -411,7 +411,7 @@ abstract class AbstractBuildForm {
$attribute
[
'action'
]
=
$this
->
getActionUrl
();
$attribute
[
'target'
]
=
'_top'
;
$attribute
[
'accept-charset'
]
=
'UTF-8'
;
$attribute
[
'autocomplete'
]
=
'on'
;
$attribute
[
FE_INPUT_AUTOCOMPLETE
]
=
'on'
;
$attribute
[
'enctype'
]
=
$this
->
getEncType
();
return
$attribute
;
...
...
@@ -1056,6 +1056,10 @@ abstract class AbstractBuildForm {
$typeAheadUrlParam
=
$this
->
typeAheadBuildParam
(
$formElement
);
if
(
$typeAheadUrlParam
!=
''
)
{
$formElement
[
FE_TYPE
]
=
FE_TYPE_SEARCH
;
// typeahead behaves better with 'search' instead of 'text'
$formElement
[
FE_INPUT_AUTOCOMPLETE
]
=
'off'
;
$class
.
=
' '
.
CLASS_TYPEAHEAD
;
$dataSip
=
$this
->
sip
->
queryStringToSip
(
$typeAheadUrlParam
,
RETURN_SIP
);
$attribute
.
=
Support
::
doAttribute
(
DATA_TYPEAHEAD_SIP
,
$dataSip
);
...
...
@@ -1124,7 +1128,7 @@ abstract class AbstractBuildForm {
$attribute
.
=
Support
::
doAttribute
(
'value'
,
htmlentities
(
$value
),
false
);
}
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
'autocomplete'
,
'autofocus'
,
'placeholder'
]);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
FE_INPUT_AUTOCOMPLETE
,
'autofocus'
,
'placeholder'
]);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
F_FE_DATA_PATTERN_ERROR
,
F_FE_DATA_REQUIRED_ERROR
,
F_FE_DATA_MATCH_ERROR
,
F_FE_DATA_ERROR
]);
$attribute
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attribute
.
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
...
...
@@ -1743,7 +1747,7 @@ abstract class AbstractBuildForm {
$attribute
.
=
Support
::
doAttribute
(
'value'
,
$formElement
[
FE_CHECKBOX_CHECKED
],
false
);
$attribute
.
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
$attribute
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attribute
.
=
Support
::
doAttribute
(
'autocomplete'
,
'off'
);
$attribute
.
=
Support
::
doAttribute
(
FE_INPUT_AUTOCOMPLETE
,
'off'
);
$classActive
=
''
;
if
(
$formElement
[
FE_CHECKBOX_CHECKED
]
===
$value
)
{
...
...
@@ -2138,7 +2142,7 @@ abstract class AbstractBuildForm {
$attributeBase
.
=
Support
::
doAttribute
(
'name'
,
$htmlFormElementName
);
$attributeBase
.
=
Support
::
doAttribute
(
'type'
,
$formElement
[
FE_TYPE
]);
$attributeBase
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attributeBase
.
=
Support
::
doAttribute
(
'autocomplete'
,
'off'
);
$attributeBase
.
=
Support
::
doAttribute
(
FE_INPUT_AUTOCOMPLETE
,
'off'
);
$attribute
=
$attributeBase
;
if
(
isset
(
$formElement
[
FE_AUTOFOCUS
]))
{
...
...
@@ -3127,7 +3131,7 @@ abstract class AbstractBuildForm {
$formElement
[
FE_PLACEHOLDER
]
=
$placeholder
;
}
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
'autocomplete'
,
'autofocus'
,
'placeholder'
]);
$attribute
.
=
$this
->
getAttributeList
(
$formElement
,
[
FE_INPUT_AUTOCOMPLETE
,
'autofocus'
,
'placeholder'
]);
$attribute
.
=
Support
::
doAttribute
(
'data-load'
,
(
$formElement
[
FE_DYNAMIC_UPDATE
]
===
'yes'
)
?
'data-load'
:
''
);
$attribute
.
=
Support
::
doAttribute
(
'title'
,
$formElement
[
FE_TOOLTIP
]);
$attribute
.
=
$this
->
getInputCheckPattern
(
$formElement
[
FE_CHECK_TYPE
],
$formElement
[
FE_CHECK_PATTERN
]);
...
...
extension/qfq/qfq/Constants.php
View file @
6557a29d
...
...
@@ -937,6 +937,7 @@ const FE_INPUT_EXTRA_BUTTON_LOCK = 'extraButtonLock';
const
FE_INPUT_EXTRA_BUTTON_PASSWORD
=
'extraButtonPassword'
;
const
FE_INPUT_EXTRA_BUTTON_INFO
=
'extraButtonInfo'
;
const
FE_INPUT_EXTRA_BUTTON_INFO_CLASS
=
'extraButtonInfoClass'
;
const
FE_INPUT_AUTOCOMPLETE
=
'autocomplete'
;
const
FE_TMP_EXTRA_BUTTON_HTML
=
'_extraButtonHtml'
;
// will be filled on the fly during building extrabutton
const
FE_CHECKBOX_CHECKED
=
'checked'
;
const
FE_CHECKBOX_UNCHECKED
=
'unchecked'
;
...
...
@@ -972,6 +973,7 @@ const FE_TYPE_DATE = 'date';
const
FE_TYPE_TIME
=
'time'
;
const
FE_TYPE_DATETIME
=
'datetime'
;
const
FE_TYPE_TEXT
=
'text'
;
const
FE_TYPE_SEARCH
=
'search'
;
const
FE_TYPE_EDITOR
=
'editor'
;
const
FE_TYPE_PASSWORD
=
'password'
;
const
FE_TYPE_RADIO
=
'radio'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment