ajaxify_rails 0.8.8 → 0.8.9

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: a84383737717ce252fe45c89ea84693b0a6d719b
4
- data.tar.gz: 18e8fe53205f0e551092cfe68f606838978a4039
3
+ metadata.gz: dc82c77342a45dcde6a00513e45ba45660068296
4
+ data.tar.gz: dbe015f92ff86b75168554864eabfc4dc183eb78
5
5
  SHA512:
6
- metadata.gz: 0e1815b5ab4694988502d0ecdb51bab11bd89022a68c979ec4beddbcbe9d7ace079b93f272b5abbbb33fedae6283ff7a63d0ce18b17feb886c76904a26304697
7
- data.tar.gz: 3884f121f8bb524a98de9f605b308a9dd6d255cf60e84283dcf210372db0bd07c1c435c94ed3df036cdf04e0db54ed95be3cf73742139204d07352bfe30dc99e
6
+ metadata.gz: a6c3fa22b1df1bf6023a214a3ad499688cb3a97dc17989ae5af1231482fce4f7cb5cc5b2b533c5b578f0357846399d90f8d04c8d63d32aba6ad6d8c883770ff5
7
+ data.tar.gz: 5c737af1c6ae535fab2cf3a3cca2e4f8d4612b7e168758bcc163793646825fee4e2e95415ec872b0666db0b85b30e9890579403d5a6f820eba4673625b308b19
@@ -1,3 +1,3 @@
1
1
  module AjaxifyRails
2
- VERSION = "0.8.8"
2
+ VERSION = "0.8.9"
3
3
  end
@@ -191,8 +191,9 @@ on_ajaxify_success = (data, status, jqXHR, pop_state, options) ->
191
191
  # The latter can happen e.g. for pagination links that are auto generated.
192
192
  original_request_type = options.type
193
193
  current_url = $('#ajaxify_content #ajaxify_location').html()
194
+ current_url = current_url.replace(/&/g, '&')
194
195
  if options.url != current_url
195
- options.url = current_url.replace(/(&|&|\?)ajaxify_redirect=true/,'')
196
+ options.url = current_url.replace(/(&|\?)ajaxify_redirect=true/,'')
196
197
  options.type = 'GET'
197
198
 
198
199
  unless original_request_type and original_request_type.toLowerCase() == 'post'
@@ -205,7 +206,7 @@ on_ajaxify_success = (data, status, jqXHR, pop_state, options) ->
205
206
  $("##{content_container} #ajaxify_content").remove()
206
207
 
207
208
  if title
208
- document.title = title.replace /&/, '&' # Todo: need to figure out what else needs to be unescaped
209
+ document.title = title.replace /&/g, '&' # Todo: need to figure out what else needs to be unescaped
209
210
 
210
211
  show_flashes(flashes)
211
212
 
@@ -356,7 +357,7 @@ rails_ujs_fix = ->
356
357
  # public interface
357
358
  # --------------------------------------------------------------------------------------------------------------------
358
359
 
359
- @Ajaxify = { init, ajaxify, load, update_url, activate, set_content_container, get_content_container, set_loader_element }
360
+ @Ajaxify = { init, ajaxify, load, update_url, activate, set_content_container, get_content_container, set_loader_element, base_path_regexp }
360
361
 
361
362
 
362
363
  # --------------------------------------------------------------------------------------------------------------------
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.8
4
+ version: 0.8.9
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-10-14 00:00:00.000000000 Z
11
+ date: 2013-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails