From 94d41167885a31f5f15fd506a650b5354c192aa4 Mon Sep 17 00:00:00 2001 From: Evgeny Fadeev Date: Fri, 10 May 2013 20:32:46 -0400 Subject: fixed some more IE8 issues --- askbot/media/js/utils.js | 2 +- askbot/templates/base.html | 1 + askbot/templates/question.html | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/askbot/media/js/utils.js b/askbot/media/js/utils.js index 9d1e1c51..0380e6fe 100644 --- a/askbot/media/js/utils.js +++ b/askbot/media/js/utils.js @@ -1286,7 +1286,7 @@ FileUploadDialog.prototype.createDom = function() { upload_input.attr({ id: this._input_id, type: 'file', - name: 'file-upload', + name: 'file-upload' //size: 26??? }); form.append(upload_input); diff --git a/askbot/templates/base.html b/askbot/templates/base.html index a3bb2173..332fa093 100644 --- a/askbot/templates/base.html +++ b/askbot/templates/base.html @@ -4,6 +4,7 @@ {% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }} + {% block meta_description %} {% endblock %} diff --git a/askbot/templates/question.html b/askbot/templates/question.html index a8aef0a7..7e8d33ef 100644 --- a/askbot/templates/question.html +++ b/askbot/templates/question.html @@ -44,7 +44,12 @@ }; var getTextContent = function(node) { - return node.innerText || node.textContent; + var text = node.innerText || node.textContent; + if (text === undefined) { + return ''; + } else { + return text; + } }; var hasAttribute = function(node, attrName) { -- cgit v1.2.3-1-g7c22