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
15cbdf59
Commit
15cbdf59
authored
2 years ago
by
unknown
Browse files
Options
Download
Email Patches
Plain Diff
Remoção da qnt de caracteres restantes na edição
parent
94367c34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
resources/views/projeto/editar.blade.php
+0
-25
resources/views/projeto/editar.blade.php
with
0 additions
and
25 deletions
+0
-25
resources/views/projeto/editar.blade.php
View file @
15cbdf59
...
@@ -257,31 +257,6 @@
...
@@ -257,31 +257,6 @@
<
script
>
<
script
>
$
(
'input'
)
.
on
(
"input"
,
function
(){
var
maxlength
=
$
(
this
)
.
attr
(
"maxlength"
);
var
currentLength
=
$
(
this
)
.
val
()
.
length
;
var
idInput
=
$
(
this
)
.
attr
(
"id"
);
if
(
currentLength
>=
maxlength
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
else
if
(
currentLength
==
0
){
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
""
);
}
else
{
$
(
"#caracsRestantes"
+
idInput
)
.
html
(
"Caracteres restantes: "
+
(
maxlength
-
this
.
value
.
length
));
}
});
$
(
document
)
.
ready
(
function
()
{
$
(
'#nomeParticipante'
)
.
keyup
(
function
()
{
$
(
'#display'
)
.
text
(
$
(
this
)
.
val
());
if
(
$
(
'#nomeParticipante'
)
.
val
()
==
""
){
$
(
'#display'
)
.
hide
();
$
(
'#pontos'
)
.
hide
();
}
else
{
$
(
'#display'
)
.
show
();
$
(
'#pontos'
)
.
show
();
}
});
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
$
.
validator
.
addMethod
(
"alpha"
,
function
(
value
,
element
)
{
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
return
this
.
optional
(
element
)
||
value
==
value
.
match
(
/^
[
A
-
Za
-
záàâãéèêíïóôõöúçñÁÀÂÃÉÈÍÏÓÔÕÖÚÇÑ
]
+
$
/
);
...
...
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