Skip to content

Commit

Permalink
revert #1447, and specifically target python-navigation class site tr…
Browse files Browse the repository at this point in the history
…ee when adding About Python supernav
  • Loading branch information
ewdurbin committed Jun 3, 2019
1 parent b682dbd commit 6730e98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fixtures/boxes.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[

{
"fields": {
"label": "supernav-python-about",
"content": "\r\n <li class=\"tier-2 super-navigation\">\r\n <h4>Python is a programming language that lets you work more quickly and integrate your systems more effectively.</h4>\r\n <p>You can learn to use Python and see almost immediate gains in productivity and lower maintenance costs. <a href=\"/about\">Learn more about Python.</a>.\r\n </li>",
"content_markup_type": "html"
}
},
{
"fields": {
"label": "supernav-python-events",
Expand Down
6 changes: 6 additions & 0 deletions static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ function on_resize_orientationchange() {

if ( mq_tag.indexOf("load_supernavs") !=-1 && ! supernavs_loaded || is_ltie9 ) {

$.get("/box/supernav-python-about/",
function(data){
$('.python-navigation li#about .subnav').append( data );
}, "html");
$('li#about').addClass("with-supernav");

$.get("/box/supernav-python-downloads/",
function(data){
$('li#downloads .subnav').append( data );
Expand Down

0 comments on commit 6730e98

Please sign in to comment.