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 +4 -4
- data/VERSION +1 -1
- data/app/assets/javascripts/bhf/application.js +5 -5
- data/app/controllers/bhf/pages_controller.rb +1 -1
- data/bhf.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78eaac17e417db71d0246b86630ade3f2e556c9c
|
4
|
+
data.tar.gz: f6f7f2c10ff06d27125fcac55e6726728a5365a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 773ad8fa4bbea3f2b7118b79857d1bbf99df5a4b2393117b607e2807596834c1f921ee554bcc3b5853e6dce70c94fd6d8ed8eb423570d4d5c445a6c95f8d4bfb
|
7
|
+
data.tar.gz: 6f5e704b6d2efaa7db90b262f821c4d234c322a7a480a23a6da26e78010371e4e69ff694f1bb1871204de0a1d88cfc52f7b13c3490604f739f8bcdc083956f5c
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.0.
|
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?(
|
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.
|
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.
|
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]
|