pjax-rails 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/pjax.rb CHANGED
@@ -13,10 +13,10 @@ module Pjax
13
13
  if (!window.history || !window.history.pushState) {
14
14
  window.location.href = '#{new_url}';
15
15
  } else {
16
- $('div.pages').html(#{render_to_string("#{action}.html.erb").to_json});
16
+ $('[data-pjax-container]').html(#{render_to_string("#{action}.html.erb").to_json});
17
17
  $(document).trigger('end.pjax');
18
18
 
19
- var title = $.trim($('div.pages').find('title').remove().text());
19
+ var title = $.trim($('[data-pjax-container]').find('title').remove().text());
20
20
  if (title) document.title = title;
21
21
  window.history.pushState({}, document.title, '#{new_url}');
22
22
  }
data/pjax-rails.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'pjax-rails'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
  s.author = 'David Heinemeier Hansson (PJAX by Chris Wanstrath)'
5
5
  s.email = 'david@loudthinking.com'
6
6
  s.summary = 'PJAX integration for Rails 3.1+'
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: pjax-rails
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - David Heinemeier Hansson (PJAX by Chris Wanstrath)
@@ -39,8 +39,6 @@ files:
39
39
  - ./lib/assets/javascripts/pjax/page_triggers.js.coffee
40
40
  - ./lib/pjax-rails.rb
41
41
  - ./lib/pjax.rb
42
- - ./pjax-rails-0.1.1.gem
43
- - ./pjax-rails-0.1.gem
44
42
  - ./pjax-rails.gemspec
45
43
  - ./README.md
46
44
  has_rdoc: true
data/pjax-rails-0.1.1.gem DELETED
Binary file
data/pjax-rails-0.1.gem DELETED
Binary file