website: Fix Vagrant Cloud API examples
When using Turbolinks to navigate between docs pages, the document ready event never fired and all language examples were shown. This should fix the issue without needed a refresh/example menu click.
This commit is contained in:
parent
e98b72d2c5
commit
161cf35884
|
@ -13,9 +13,9 @@ sidebar_current: "vagrant-cloud-api"
|
||||||
$(".examples pre.highlight." + language).show();
|
$(".examples pre.highlight." + language).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).on('ready turbolinks:load', function() {
|
||||||
setExampleLanguage("shell"); }
|
setExampleLanguage("shell");
|
||||||
);
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in New Issue