Sfoglia il codice sorgente

[docs] Fix for wrong version warning on master instead of latest.

Thatcher Peskens 11 anni fa
parent
commit
1e551c7cc5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      docs/theme/docker/static/js/docs.js

+ 1 - 1
docs/theme/docker/static/js/docs.js

@@ -92,7 +92,7 @@ $(function(){
         $('.version-flyer ul').html('<li class="alternative active-slug"><a href="" title="Switch to local">Local</a></li>');
         $('.version-flyer ul').html('<li class="alternative active-slug"><a href="" title="Switch to local">Local</a></li>');
     }
     }
 
 
-    if (doc_version == "master") {
+    if (doc_version == "latest") {
         $('.version-flyer .version-note').hide();
         $('.version-flyer .version-note').hide();
     }
     }