2011-12-05 03:22:32 +00:00
|
|
|
$(function () {
|
2011-12-05 01:54:41 +00:00
|
|
|
$('#panel_sidebar a, #panel_main a.nav').live('click',
|
|
|
|
function () {
|
|
|
|
$.getScript(this.href);
|
2011-12-05 03:22:32 +00:00
|
|
|
history.pushState(null, document.title, this.href);
|
|
|
|
history_edited = true;
|
|
|
|
return false;
|
2011-12-05 01:54:41 +00:00
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2011-12-05 03:22:32 +00:00
|
|
|
$('#panel_main a.reload').live('click',
|
|
|
|
function () {
|
2011-12-05 01:54:41 +00:00
|
|
|
$.getScript(this.href);
|
2011-12-05 03:22:32 +00:00
|
|
|
history.replaceState(null, document.title, this.href);
|
|
|
|
history_edited = true;
|
|
|
|
return false;
|
|
|
|
}
|
2011-12-05 01:54:41 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
$('.form').live('submit', function () {
|
2011-12-05 03:22:32 +00:00
|
|
|
$.post(this.action, $(this).serialize(), null, 'script');
|
|
|
|
history_edited = true;
|
|
|
|
return false;
|
2011-12-05 01:54:41 +00:00
|
|
|
});
|
|
|
|
|
2011-12-05 03:22:32 +00:00
|
|
|
$(window).bind("popstate", function () {
|
|
|
|
if (history_edited) {
|
|
|
|
$.getScript(location.href);
|
|
|
|
}
|
2011-12-05 01:54:41 +00:00
|
|
|
});
|
|
|
|
});
|