Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
ef4fe133
Commit
ef4fe133
authored
2 years ago
by
José Fernando Mendes da Costa
Browse files
Options
Download
Email Patches
Plain Diff
carrega macara do cpf quando a página é carregada
parent
becabd1a
master
carl-branch
excluir_projeto_submetido
updates_mar
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/evento/formulario/integrantes.blade.php
+4
-21
resources/views/evento/formulario/integrantes.blade.php
with
4 additions
and
21 deletions
+4
-21
resources/views/evento/formulario/integrantes.blade.php
View file @
ef4fe133
...
...
@@ -43,7 +43,7 @@
<div
class=
"form-row d-flex"
>
<label
for=
"cpf_consulta"
>
CPF:
</label>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
onkeyup=
"mask_cpf();"
>
<input
type=
"text"
id=
"cpf_consulta"
name=
"cpf_consulta"
class=
"form-control"
>
</div>
<div
class=
"form-row d-flex"
style=
"margin-top:10px"
>
...
...
@@ -135,26 +135,9 @@
<script>
function
mask_cpf
()
{
$
(
"
#cpf_consulta
"
).
keydown
(
function
(){
try
{
$
(
"
#cpf_consulta
"
).
unmask
();
}
catch
(
e
)
{}
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
// ajustando foco
var
elem
=
this
;
setTimeout
(
function
(){
// mudo a posição do seletor
elem
.
selectionStart
=
elem
.
selectionEnd
=
10000
;
},
0
);
// reaplico o valor para mudar o foco
var
currentValue
=
$
(
this
).
val
();
$
(
this
).
val
(
''
);
$
(
this
).
val
(
currentValue
);
});
}
$
(
document
).
ready
(
function
()
{
$
(
"
#cpf_consulta
"
).
mask
(
"
999.999.999-99
"
);
});
function
removerIntegrante
(
id
)
{
$
(
`#integrante
${
id
}
`
).
remove
()
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help