|
@ -12,9 +12,9 @@ |
|
|
maxlength={this.maxlength}> |
|
|
maxlength={this.maxlength}> |
|
|
{ placeholder } |
|
|
{ placeholder } |
|
|
</textarea> |
|
|
</textarea> |
|
|
<div if={warn} class="toast toast-danger maxwarn centered"> |
|
|
<div if={this.warn} class="toast toast-danger maxwarn centered"> |
|
|
<button |
|
|
<button |
|
|
onclick={closewarning} |
|
|
onclick={this.closewarning} |
|
|
class="btn btn-clear float-right"> |
|
|
class="btn btn-clear float-right"> |
|
|
</button> |
|
|
</button> |
|
|
Your comment is too long! |
|
|
Your comment is too long! |
|
@ -55,7 +55,7 @@ closewarning() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
echo(ev) { |
|
|
echo(ev) { |
|
|
if (this.refs.textarea.value.length >= maxlength) { |
|
|
if (this.refs.textarea.value.length >= this.maxlength) { |
|
|
this.update({ |
|
|
this.update({ |
|
|
"maxed" : "maxinput", |
|
|
"maxed" : "maxinput", |
|
|
"warn" : true |
|
|
"warn" : true |
|
@ -66,7 +66,7 @@ echo(ev) { |
|
|
"maxed" : "", |
|
|
"maxed" : "", |
|
|
"warn" : false |
|
|
"warn" : false |
|
|
}); |
|
|
}); |
|
|
window.setTimeout(this.closewarning, 5000); |
|
|
window.setTimeout(this.closewarning, 15000); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|