Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
455889cb
Commit
455889cb
authored
Oct 01, 2021
by
Guilherme Silva
Browse files
Modificado validações do tipo do arquivo nas substituições
parent
441488e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/administrador/substituirParticipante.blade.php
View file @
455889cb
...
...
@@ -216,7 +216,7 @@
}
});
$
(
"input
[type='file']
"
)
.
on
(
"change"
,
function
()
{
$
(
"input
.pdf
"
)
.
on
(
"change"
,
function
()
{
if
(
this
.
files
[
0
]
.
type
.
split
(
'/'
)[
1
]
==
"pdf"
)
{
if
(
this
.
files
[
0
]
.
size
>
20000000
){
alert
(
"O arquivo possui o tamanho superior a 2MB!"
);
...
...
@@ -227,6 +227,21 @@
$
(
this
)
.
val
(
''
);
}
});
$
(
"input[name='anexoComprovanteBancario']"
)
.
on
(
"change"
,
function
()
{
if
(
this
.
files
[
0
]
.
type
.
split
(
'/'
)[
1
]
==
"pdf"
||
this
.
files
[
0
]
.
type
.
split
(
'/'
)[
1
]
==
"jpeg"
||
this
.
files
[
0
]
.
type
.
split
(
'/'
)[
1
]
==
"jpg"
||
this
.
files
[
0
]
.
type
.
split
(
'/'
)[
1
]
==
"png"
)
{
if
(
this
.
files
[
0
]
.
size
>
20000000
){
alert
(
"O arquivo possui o tamanho superior a 2MB!"
);
$
(
this
)
.
val
(
''
);
}
}
else
{
alert
(
"O arquivo não é do tipo Correto!"
);
$
(
this
)
.
val
(
''
);
}
});
});
function
manterPlano
(
checkBox
){
...
...
Write
Preview
Markdown
is supported
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