pjax_rails 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pjax.rb +1 -1
- data/pjax_rails.gemspec +1 -1
- metadata +1 -1
data/lib/pjax.rb
CHANGED
@@ -13,7 +13,7 @@ module Pjax
|
|
13
13
|
if (!window.history || !window.history.pushState) {
|
14
14
|
window.location.href = '#{new_url}';
|
15
15
|
} else {
|
16
|
-
$('[data-pjax-container]').html(#{render_to_string("#{action}.html.erb").to_json});
|
16
|
+
$('[data-pjax-container]').html(#{render_to_string("#{action}.html.erb", layout: false).to_json});
|
17
17
|
$(document).trigger('end.pjax');
|
18
18
|
|
19
19
|
var title = $.trim($('[data-pjax-container]').find('title').remove().text());
|
data/pjax_rails.gemspec
CHANGED