Links edition
This commit is contained in:
1 parent
d9ba76ebd5
commit
24ae7ed5e3
31 files changed
+184
-98
No files matched your search
@@ -1,2 +1,21 @@
|
||||
// Place your application-specific JavaScript functions and classes here
|
||||
// This file is automatically included by javascript_include_tag :defaults
|
||||
|
||||
$(function () {
|
||||
$('#sidebar a, #main a').live('click',
|
||||
function () {
|
||||
$.getScript(this.href);
|
||||
history.pushState(null, document.title, this.href);
|
||||
return false;
|
||||
}
|
||||
);
|
||||
|
||||
$('.form').live('submit', function () {
|
||||
$.post(this.action, $(this).serialize(), null, 'script');
|
||||
return false;
|
||||
});
|
||||
|
||||
$(window).bind("popstate", function () {
|
||||
$.getScript(location.href);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user