Skip to content

Commit

Permalink
AJAXifying the music browsing display.
Browse files Browse the repository at this point in the history
  • Loading branch information
ymendel committed Sep 14, 2008
1 parent f501437 commit 50105cd
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions public/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
$('ul#track_listing a[href*="browse"]').livequery('click', function(event) {
event.preventDefault();
var elem = $(this);
$.get(this.href,
function(html) {
html = $(html);
html.removeAttr('id');
elem.parent('li').after(html);
}
);
});

0 comments on commit 50105cd

Please sign in to comment.