summaryrefslogtreecommitdiffstats
path: root/askbot/skins
diff options
context:
space:
mode:
authorAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-09-04 11:25:49 -0600
committerAdolfo Fitoria <adolfo.fitoria@gmail.com>2012-09-04 11:25:49 -0600
commit82bc151d47e6c4dd432f704f6b95a4de1f9d0777 (patch)
tree892fad89697c3962cacf63f1e38fd4caa4cbb0e3 /askbot/skins
parent4340fb18b9974a1a93d8c40f281e1da59fa38c41 (diff)
downloadaskbot-82bc151d47e6c4dd432f704f6b95a4de1f9d0777.tar.gz
askbot-82bc151d47e6c4dd432f704f6b95a4de1f9d0777.tar.bz2
askbot-82bc151d47e6c4dd432f704f6b95a4de1f9d0777.zip
hopefully fixed the jump issue in some browsers
Diffstat (limited to 'askbot/skins')
-rwxr-xr-xaskbot/skins/default/templates/embed/askbot_widget.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/askbot/skins/default/templates/embed/askbot_widget.js b/askbot/skins/default/templates/embed/askbot_widget.js
index fa5fe731..8c358855 100755
--- a/askbot/skins/default/templates/embed/askbot_widget.js
+++ b/askbot/skins/default/templates/embed/askbot_widget.js
@@ -11,7 +11,6 @@ var {{variable_name}} = {
var html = {{variable_name}}.createButton();
var link = document.createElement('link');
link.setAttribute("rel", "stylesheet");
- //link.setAttribute("href", 'http://{{host}}{{"/style/askbot-modal.css"|media}}');
link.setAttribute("href", 'http://{{host}}{%url render_ask_widget_css widget.id%}');
//creating the div
@@ -43,8 +42,8 @@ var {{variable_name}} = {
var body = document.getElementsByTagName('body')[0];
if (body){
- body.insertBefore(motherDiv, body.firstChild);
- body.insertBefore(link, body.firstChild);
+ body.appendChild(link);
+ body.appendChild(motherDiv);
}
},
createButton: function() {
@@ -72,4 +71,4 @@ var onload_functions = function(){
}
window.onload = onload_functions();
-document.write({{variable_name}}.createButton().outerHTML); \ No newline at end of file
+document.write({{variable_name}}.createButton().outerHTML);