Merge branch 'master' of github.com:Gluejar/regluit
commit
ada52d5d0c
|
@ -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();}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
Loading…
Reference in New Issue