Skip to content

Commit

Permalink
Removed #join-us and its related code (#2852)
Browse files Browse the repository at this point in the history
* Related to #2851 - removed #join-us and its related code
  • Loading branch information
mmmavis authored and Pomax committed Mar 19, 2019
1 parent a1c7b3c commit fefa19b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 0 additions & 5 deletions network-api/networkapi/templates/pages/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@
<div id="member-notice">{% if page.status == 1 %}<div><strong>Draft preview.</strong> You must save as Published to make it public.</div>{% endif %}
</div>
<div class="sticky-top">
<div class="wrapper-join-us">
<div class="container">
<div class="join-us" id="join-us"></div>
</div>
</div>
{% block primaryNav %}
{% include "partials/primary_nav.html" with background="simple-background" %}
{% endblock %}
Expand Down
6 changes: 2 additions & 4 deletions source/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,8 @@ let main = {
}

// Embed additional instances of the Join Us box that don't need an API exposed (eg: Homepage)
if (document.querySelectorAll(`.join-us:not(#join-us)`)) {
var elements = Array.from(
document.querySelectorAll(`.join-us:not(#join-us)`)
);
if (document.querySelectorAll(`.join-us`)) {
var elements = Array.from(document.querySelectorAll(`.join-us`));

if (elements.length) {
elements.forEach(element => {
Expand Down

0 comments on commit fefa19b

Please sign in to comment.