summaryrefslogtreecommitdiffstats
path: root/askbot/skins
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-06 11:38:16 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-09-06 11:38:16 -0400
commite5fbb42da5665df017cb98b7cb99d8c8d8d5fe52 (patch)
treebb3cb32b1c15b51eccc84b2f0300da1883d93e35 /askbot/skins
parentcc3ebc871f8da4329aad5db65e960b052e8f8834 (diff)
parent82bc151d47e6c4dd432f704f6b95a4de1f9d0777 (diff)
downloadaskbot-e5fbb42da5665df017cb98b7cb99d8c8d8d5fe52.tar.gz
askbot-e5fbb42da5665df017cb98b7cb99d8c8d8d5fe52.tar.bz2
askbot-e5fbb42da5665df017cb98b7cb99d8c8d8d5fe52.zip
Merge branch 'adolfo' into user-groups
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);