Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Merge pull request #241 from stloyd/issue_240
Browse files Browse the repository at this point in the history
Fix for #240
  • Loading branch information
stloyd committed Sep 14, 2012
2 parents 81782e9 + 1700789 commit c581724
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/Knp/Bundle/KnpBundlesBundle/Resources/public/js/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
(function($) {
if (window.location.hash.length > 0) {
$('ul.nav-tabs li > a[data-target="' + window.location.hash.replace('#', '') + '"]').tab('show');
}

$(document).bind('keydown.s keydown.f keydown./', function() {
$('#search-query').focus();
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,14 @@
{% block left %}
<div class="content-box tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#readme" data-toggle="tab"><i class="icon-info"></i>README</a></li>
<li class="active"><a href="#readme" data-toggle="tab" data-target="readme"><i class="icon-info"></i>README</a></li>
{%- if bundle.license -%}
<li><a href="#license" data-toggle="tab"><i class="icon-bag"></i>LICENSE</a></li>
<li><a href="#license" data-toggle="tab" data-target="license"><i class="icon-bag"></i>LICENSE</a></li>
{%- endif %}
{%- if not bundle.canonicalConfig is empty -%}
<li><a href="#configuration" data-toggle="tab"><i class="icon-wrench"></i>Configuration</a></li>
<li><a href="#configuration" data-toggle="tab" data-target="configuration"><i class="icon-wrench"></i>Configuration</a></li>
{%- endif %}
<li><a href="#activity" data-toggle="tab"><i class="icon-clock"></i>Recent activity</a></li>
<li><a href="#activity" data-toggle="tab" data-target="activity"><i class="icon-clock"></i>Recent activity</a></li>
</ul>

<div class="tab-content">
Expand Down

0 comments on commit c581724

Please sign in to comment.