mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 01:15:47 +01:00
closes #729
This commit is contained in:
@@ -43,7 +43,11 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
|
|||||||
|
|
||||||
|
|
||||||
function getSignatureCharsLeft() {
|
function getSignatureCharsLeft() {
|
||||||
return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')';
|
if($('#inputSignature').length) {
|
||||||
|
return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')';
|
||||||
|
} else {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#signatureCharCountLeft').html(getSignatureCharsLeft());
|
$('#signatureCharCountLeft').html(getSignatureCharsLeft());
|
||||||
|
|||||||
Reference in New Issue
Block a user