8000 revert #1447, and specifically target python-navigation class site tr… · python/pythondotorg@6730e98 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6730e98

Browse files
committed
revert #1447, and specifically target python-navigation class site tree when adding About Python supernav
1 parent b682dbd commit 6730e98

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

fixtures/boxes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
3+
{
4+
"fields": {
5+
"label": "supernav-python-about",
6+
"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>",
7+
"content_markup_type": "html"
8+
}
9+
},
210
{
311
"fields": {
412
"label": "supernav-python-events",

static/js/script.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ function on_resize_orientationchange() {
7373

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

76+
$.get("/box/supernav-python-about/",
77+
function(data){
78+
$('.python-navigation li#about .subnav').append( data );
79+
}, "html");
80+
$('li#about').addClass("with-supernav");
81+
7682
$.get("/box/supernav-python-downloads/",
7783
function(data){
7884
$('li#downloads .subnav').append( data );

0 commit comments

Comments
 (0)
0