Skip to content

Commit

Permalink
set the window location hash when you click a tab
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed Mar 19, 2010
1 parent 5213c75 commit 36d12db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/javascripts/uv.js
Expand Up @@ -5,6 +5,10 @@ google.setOnLoadCallback(function() {
var nav = $('#tabs')
nav.tabs();

nav.bind('tabsselect', function(event, ui) {
window.location.hash = ui.tab.hash
});

$('#uv-form').submit(function() {
var data = $(this).serialize();
$.get("/api", data, function(result) {
Expand Down

0 comments on commit 36d12db

Please sign in to comment.