Skip to content

Commit

Permalink
Small formatting change to the Alabaster footer
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Jan 9, 2018
1 parent 32e3073 commit 7db2233
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions readthedocs/core/static-src/core/js/sponsorship.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,15 @@ Promo.prototype.place_promo = function (selector, promo_class) {
Promo.prototype.get_alabaster_promo_selector = function () {
// Return a jQuery selector where the promo goes on the Alabaster theme
var self = this,
selector;
selector, wrapper;

if (self.display_type === constants.PROMO_TYPES.FOOTER) {
selector = $('<div />')
wrapper = $('<div />')
.attr('class', 'rtd-pro-footer-wrapper body')
.appendTo('div.bodywrapper');
$('<hr />').insertBefore(selector);
$('<hr />').insertAfter(selector);
$('<hr />').appendTo(wrapper);
selector = $('<div />').appendTo(wrapper);
$('<hr />').appendTo(wrapper);
} else {
selector = $('div.sphinxsidebar > div.sphinxsidebarwrapper');
}
Expand Down
Loading

0 comments on commit 7db2233

Please sign in to comment.