ajaxify_rails 0.8.7 → 0.8.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 803dfb40c865ab0b8a72d060b4aae7c31c7fde51
4
- data.tar.gz: 6794aea221fc65a1df7609199af70d18602f0d93
3
+ metadata.gz: a84383737717ce252fe45c89ea84693b0a6d719b
4
+ data.tar.gz: 18e8fe53205f0e551092cfe68f606838978a4039
5
5
  SHA512:
6
- metadata.gz: 36a8cf763f353e781aab57bce686bea2645b6fc067dcebf319b67cf22366291b7122b167688afd0098a89739e2dbe64842736ee31d7c5d2495bbe6f145cb6498
7
- data.tar.gz: bfdbc4250a198ab07cbdc11eb2893e2f3cc75fa4c4ef86ce91ec15a63780407f86323bbd41f20ad61097d4a684d0722a7ff1c0792b1339709c5a2d2acf2b0837
6
+ metadata.gz: 0e1815b5ab4694988502d0ecdb51bab11bd89022a68c979ec4beddbcbe9d7ace079b93f272b5abbbb33fedae6283ff7a63d0ce18b17feb886c76904a26304697
7
+ data.tar.gz: 3884f121f8bb524a98de9f605b308a9dd6d255cf60e84283dcf210372db0bd07c1c435c94ed3df036cdf04e0db54ed95be3cf73742139204d07352bfe30dc99e
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.8.7"
2
+ VERSION = "0.8.8"
3
3
  end
@@ -317,7 +317,8 @@ scroll_page_to_top = ->
317
317
 
318
318
  reload_page_if_assets_stale = (url, jqXHR) ->
319
319
  digest_header = jqXHR.getResponseHeader('Ajaxify-Assets-Digest')
320
- if digest_header and digest_header != $("meta[name='ajaxify:assets-digest']").attr('content')
320
+ meta_asset_digest = $("meta[name='ajaxify:assets-digest']").attr('content')
321
+ if digest_header and meta_asset_digest != '' and digest_header != meta_asset_digest
321
322
  document.location.href = url
322
323
 
323
324
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ajaxify_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.7
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Ritsche
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-30 00:00:00.000000000 Z
11
+ date: 2013-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails