2011-07-12 08:02:41 +00:00
|
|
|
// This is a manifest file that'll be compiled into including all the files listed below.
|
|
|
|
// // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
|
|
|
|
// // be included in the compiled file accessible from http://example.com/assets/application.js
|
|
|
|
// // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
|
|
// // the compiled file.
|
|
|
|
// //
|
2011-07-19 10:31:53 +00:00
|
|
|
// //= require design_temp
|
2011-07-12 08:02:41 +00:00
|
|
|
// //= require jquery
|
|
|
|
// //= require jquery_ujs
|
|
|
|
|
|
|
|
// Place your application-specific JavaScript functions and classes here
|
|
|
|
// This file is automatically included by javascript_include_tag :defaults
|
|
|
|
|
|
|
|
$(function () {
|
|
|
|
$('#panel_sidebar a, #panel_main a.nav').live('click',
|
|
|
|
function () {
|
|
|
|
$.getScript(this.href);
|
|
|
|
history.pushState(null, document.title, this.href);
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
$('#panel_main a.reload').live('click',
|
|
|
|
function () {
|
|
|
|
$.getScript(this.href);
|
|
|
|
history.replaceState(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);
|
|
|
|
});
|
|
|
|
});
|