summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-06 23:20:29 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2013-05-06 23:20:29 -0400
commit8ac806f3fd19e2cc08643560432b8bc2f99f6497 (patch)
tree5f148130ebf9bfb74210062ee5805a67f47159b5
parent9da5a59401ba850ea0fdb4a6c116dbdb0a183a5c (diff)
downloadaskbot-8ac806f3fd19e2cc08643560432b8bc2f99f6497.tar.gz
askbot-8ac806f3fd19e2cc08643560432b8bc2f99f6497.tar.bz2
askbot-8ac806f3fd19e2cc08643560432b8bc2f99f6497.zip
fixed iframe IE8 issues
-rw-r--r--askbot/media/js/post.js2
-rw-r--r--askbot/media/js/wmd/wmd.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/askbot/media/js/post.js b/askbot/media/js/post.js
index 7f9e3d42..4d63559c 100644
--- a/askbot/media/js/post.js
+++ b/askbot/media/js/post.js
@@ -2580,7 +2580,7 @@ FoldedEditor.prototype.getEditorInputId = function() {
FoldedEditor.prototype.onAfterOpenHandler = function() {
var editor = this.getEditor();
if (editor) {
- setTimeout(editor.focus(), 500);
+ setTimeout(function() {editor.focus()}, 500);
}
};
diff --git a/askbot/media/js/wmd/wmd.js b/askbot/media/js/wmd/wmd.js
index 35a571e5..09e11371 100644
--- a/askbot/media/js/wmd/wmd.js
+++ b/askbot/media/js/wmd/wmd.js
@@ -1912,7 +1912,7 @@ util.prompt = function(text, defaultInputText, makeLinkMarkdown, dialogType){
if (start_now){
loadListener();
} else {
- util.addEvent(top, "load", loadListener);
+ util.addEvent(window, "load", loadListener);
}
};
@@ -2490,7 +2490,7 @@ if (askbot['settings']['editorType'] == 'markdown' && !Attacklab.wmd) {
mergeEnv(Attacklab.wmd_defaults);
mergeEnv(Attacklab.account_options);
- mergeEnv(top["wmd_options"]);
+ mergeEnv(window["wmd_options"]);
Attacklab.full = true;
var defaultButtons = "bold italic link blockquote code image attachment ol ul heading hr";