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:
Justin Campbell 2017-12-06 15:03:11 -05:00
parent e98b72d2c5
commit 161cf35884
1 changed files with 3 additions and 3 deletions

View File

@ -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>