Merge branch 'master' of github.com:Gluejar/regluit

pull/1/head
Raymond Yee 2013-02-18 09:18:10 -08:00
commit ada52d5d0c
1 changed files with 6 additions and 4 deletions

View File

@ -1,11 +1,13 @@
// hijack a link with class "hijax" to show its content in a lightbox instead // hijack a link with class "hijax" to load only the list element
// allows for ajaxy presentation of things like download links in a way that
// degrades gracefully for non-js users
var $j = jQuery.noConflict(); var $j = jQuery.noConflict();
$j(document).ready(function() { $j(document).ready(function() {
$j("a.hijax_unglued").click(function(event) { $j("a.hijax_unglued").click(function(event) {
event.preventDefault(); event.preventDefault();
$j("#content-block-content").html('<img src="/static/images/loading.gif">').load($j(this).attr("href") + " #books-go-here"); $j("#content-block-content").html('<img src="/static/images/loading.gif">').load($j(this).attr("href") + " #books-go-here", function(){
$j('#toggle-list').click(toggleList);
$j('#toggle-panel').click(togglePanel);
if($j.cookie('view')=='panel') {togglePanel();}
});
}); });
}); });