Skip to content

Commit 76635e6

Browse files
authored
Merge pull request #3491 from davidfischer/alabaster-footer-formatting
Small formatting change to the Alabaster footer
2 parents d63caef + 9a9ba0e commit 76635e6

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

readthedocs/core/static-src/core/js/sponsorship.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,16 @@ Promo.prototype.place_promo = function (selector, promo_class) {
117117
Promo.prototype.get_alabaster_promo_selector = function () {
118118
// Return a jQuery selector where the promo goes on the Alabaster theme
119119
var self = this,
120-
selector;
120+
selector,
121+
wrapper;
121122

122123
if (self.display_type === constants.PROMO_TYPES.FOOTER) {
123-
selector = $('<div />')
124+
wrapper = $('<div />')
124125
.attr('class', 'rtd-pro-footer-wrapper body')
125126
.appendTo('div.bodywrapper');
126-
$('<hr />').insertBefore(selector);
127-
$('<hr />').insertAfter(selector);
127+
$('<hr />').appendTo(wrapper);
128+
selector = $('<div />').appendTo(wrapper);
129+
$('<hr />').appendTo(wrapper);
128130
} else {
129131
selector = $('div.sphinxsidebar > div.sphinxsidebarwrapper');
130132
}

0 commit comments

Comments
 (0)