From 32f17d5e133afaef2a90d91b7bfa356e455c9f25 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Sun, 5 Jan 2014 00:39:15 -0500 Subject: [PATCH] closes #729 --- public/src/forum/accountedit.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/src/forum/accountedit.js b/public/src/forum/accountedit.js index 858ef06bad..7ec546521c 100644 --- a/public/src/forum/accountedit.js +++ b/public/src/forum/accountedit.js @@ -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());