summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-10 20:32:46 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-10 20:32:46 -0400
commit94d41167885a31f5f15fd506a650b5354c192aa4 (patch)
tree3a3f383d04d6ed140f14613a0b864d3c96dd837d
parent846a70e20c5f7ef585e29e6514bf38990c60b1ad (diff)
downloadaskbot-94d41167885a31f5f15fd506a650b5354c192aa4.tar.gz
askbot-94d41167885a31f5f15fd506a650b5354c192aa4.tar.bz2
askbot-94d41167885a31f5f15fd506a650b5354c192aa4.zip
fixed some more IE8 issues
-rw-r--r--askbot/media/js/utils.js2
-rw-r--r--askbot/templates/base.html1
-rw-r--r--askbot/templates/question.html7
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 @@
<head>
<title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=EDGE" />
{% block meta_description %}
<meta name="description" content="{{settings.APP_DESCRIPTION|escape}}" />
{% 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) {