lib/generators/somatics/install/templates/public/javascripts/somatics/base.js in somatics3-generators-0.0.8 vs lib/generators/somatics/install/templates/public/javascripts/somatics/base.js in somatics3-generators-0.0.9

- old
+ new

@@ -224,8 +224,14 @@ $$('.hol').each(function(el) { el.hide(); }); }); +Event.observe(window, "ajax:complete", function(event){ + if(event.memo.responseText != 'undefined'){ + $("content").update(event.memo.responseText); // insert content + } +}); + function link_to(url) { window.location = url; } \ No newline at end of file