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
Rex Dri
Rex Dri
Commits
488ad34a
Commit
488ad34a
authored
Sep 14, 2018
by
Florent Chehab
Browse files
Textfield improved
parent
cbd26501
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/university/shared/fields/TextField.js
View file @
488ad34a
...
...
@@ -29,10 +29,10 @@ class TextField extends Field {
if
(
this
.
props
.
maxLength
&&
value
.
length
>
this
.
props
.
maxLength
)
{
messages
.
push
(
"
L'URL est trop long.
"
);
}
if
(
this
.
props
.
isUrl
&&
!
isUrl
(
value
))
{
if
(
this
.
props
.
isUrl
&&
value
!=
''
&&
!
isUrl
(
value
))
{
messages
.
push
(
"
L'URL entrer n'est pas reconnu.
"
)
}
if
(
this
.
props
.
isUrl
&&
this
.
props
.
urlExtensions
.
length
>
0
)
{
if
(
this
.
props
.
isUrl
&&
value
!=
''
&&
this
.
props
.
urlExtensions
.
length
>
0
)
{
if
(
!
stringHasExtension
(
value
,
this
.
props
.
urlExtensions
))
{
messages
.
push
(
"
Extension de l'URL non conforme
"
)
}
...
...
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