This commit is contained in:
Baris Soner Usakli
2014-01-05 00:39:15 -05:00
parent bee3c06a07
commit 32f17d5e13

View File

@@ -43,7 +43,11 @@ define(['forum/accountheader', 'uploader'], function(header, uploader) {
function getSignatureCharsLeft() {
return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')';
if($('#inputSignature').length) {
return '(' + $('#inputSignature').val().length + '/' + config.maximumSignatureLength + ')';
} else {
return '';
}
}
$('#signatureCharCountLeft').html(getSignatureCharsLeft());