This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2010-03-08 08:04:05 +00:00
|
|
|
// Place your application-specific JavaScript functions and classes here
|
|
|
|
// This file is automatically included by javascript_include_tag :defaults
|
2011-05-13 01:08:42 +00:00
|
|
|
|
|
|
|
$(function () {
|
2011-06-10 05:57:42 +00:00
|
|
|
$('#panel_sidebar a, #panel_main a.nav').live('click',
|
2011-05-13 01:08:42 +00:00
|
|
|
function () {
|
|
|
|
$.getScript(this.href);
|
|
|
|
history.pushState(null, document.title, this.href);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2011-06-10 05:57:42 +00:00
|
|
|
$('#panel_main a.reload').live('click',
|
2011-05-27 03:27:54 +00:00
|
|
|
function () {
|
|
|
|
$.getScript(this.href);
|
|
|
|
history.replaceState(null, document.title, this.href);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2011-05-13 01:08:42 +00:00
|
|
|
$('.form').live('submit', function () {
|
|
|
|
$.post(this.action, $(this).serialize(), null, 'script');
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$(window).bind("popstate", function () {
|
|
|
|
$.getScript(location.href);
|
|
|
|
});
|
|
|
|
});
|