bhf 1.0.0.beta3 → 1.0.0.beta4

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: 41fa77404e15a9747fc8842577826bcdb831b1c2
4
- data.tar.gz: 12fb996fa607b4bb10e96f9ea5e7208b7acaeb20
3
+ metadata.gz: 78eaac17e417db71d0246b86630ade3f2e556c9c
4
+ data.tar.gz: f6f7f2c10ff06d27125fcac55e6726728a5365a1
5
5
  SHA512:
6
- metadata.gz: 0045ed97911d792a3e5b0588284de54ab2d74ab04d7549d9b77373ec469acdeb72204243b1cfda21d504bd5b28050b3a3b55593e4e483d13f73342f4ec425970
7
- data.tar.gz: 37a81fac11198ecc8060299dde43df7900fb4617fe83026d50e42e83ee69befc82f8d76df4580cdce3f15bcef4920f891f1fc6de1279c007502c67fe36a420f8
6
+ metadata.gz: 773ad8fa4bbea3f2b7118b79857d1bbf99df5a4b2393117b607e2807596834c1f921ee554bcc3b5853e6dce70c94fd6d8ed8eb423570d4d5c445a6c95f8d4bfb
7
+ data.tar.gz: 6f5e704b6d2efaa7db90b262f821c4d234c322a7a480a23a6da26e78010371e4e69ff694f1bb1871204de0a1d88cfc52f7b13c3490604f739f8bcdc083956f5c
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta3
1
+ 1.0.0.beta4
@@ -11,9 +11,6 @@
11
11
  Locale.use(lang);
12
12
 
13
13
  var ajaxNote = new Ajaxify();
14
- document.addEventListener('page:fetch', function(){
15
- ajaxNote.loading();
16
- });
17
14
 
18
15
  var editStack = new QuickEditStack({
19
16
  permanentQuickEditEvents: {
@@ -51,7 +48,7 @@
51
48
  onFailure: function(){
52
49
  ajaxNote.failure();
53
50
  },
54
- onSuccess: function(a, b, html){
51
+ onSuccess: function (a, b, html) {
55
52
  platform.innerHTML = html;
56
53
  if (callback) {
57
54
  callback.call();
@@ -390,12 +387,15 @@
390
387
  });
391
388
 
392
389
 
393
- var bodyCallback = function(){
390
+ var bodyCallback = function () {
394
391
  window.fireEvent('bhfDomChunkReady', [document.body]);
395
392
  };
396
393
  var scopeCallback = function(scope){
397
394
  window.fireEvent('bhfDomChunkReady', [scope]);
398
395
  };
396
+ document.addEventListener('turbolinks:request-start', function () {
397
+ ajaxNote.loading();
398
+ });
399
399
  document.addEventListener('turbolinks:load', bodyCallback);
400
400
  window.addEvent('domready', bodyCallback);
401
401
  window.addEvent('platformUpdate', scopeCallback);
@@ -9,7 +9,7 @@ class Bhf::PagesController < Bhf::ApplicationController
9
9
 
10
10
  if request.xhr?
11
11
  params.each do |key, value|
12
- return render_platform(key) if value.is_a?(Hash)
12
+ return render_platform(key) if value.is_a?(ActionController::Parameters) && value[:page] != nil
13
13
  end
14
14
  end
15
15
 
data/bhf.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bhf 1.0.0.beta3 ruby lib
5
+ # stub: bhf 1.0.0.beta4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bhf".freeze
9
- s.version = "1.0.0.beta3"
9
+ s.version = "1.0.0.beta4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta3
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik