bhf 0.5.9 → 0.5.10

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: 0cd244ecf232f9827a8a190416b3bc7bd73edc2e
4
- data.tar.gz: f0a443ea578ddc671316a4b174d91de8a00d9a7a
3
+ metadata.gz: 1a87aaf5d94cb54bc7759cb669df3e0491f223e9
4
+ data.tar.gz: 7433440f4026cd0498649dd34c23d8369cf3b701
5
5
  SHA512:
6
- metadata.gz: 0eba26566f7e74abb42724ac396bb3b5b1281c88740a6e10dbe6412c68537c1e532513ea4f944e1cec5d25f3bec05bdece40db89403666694477211eaeb10d29
7
- data.tar.gz: 2df5a841b3e43d58b7a02ae82865e98932fccb950743b4efd9c4b0e6525e7abd38adf02fce2f7bf6be4cde76d699d16f9bef1261570b8f125fd3f3dfa83d7fab
6
+ metadata.gz: 86f0220165ec5b52e6413047aaa83bac1df6f9f630052d3b89b9254155b8c6a8046ba3a2a7223ddee337315145c692fbe1ecc2db0fe24684a6a3874551a2eecc
7
+ data.tar.gz: fe95249740d4d57271d61547aebeec8d21a807a21e695ef3b0c3107c873cc7264faee3a50fa6f921670d5aa1d55e603c643e630d66f396ce7f04374873efcc00
@@ -3,10 +3,11 @@
3
3
  //= require ./mootools_ujs_ap
4
4
  //= require turbolinks
5
5
  //= require_tree ./classes/
6
+ var ajaxNote = new Ajaxify();
6
7
  var pageSetup = function(){
7
8
  var quickEdit;
8
9
  window.addEvent('domready', function(){
9
- var ajaxNote = new Ajaxify();
10
+ ajaxNote.setup();
10
11
  var lang = document.html.get('lang');
11
12
  if (lang === 'en') {
12
13
  lang = 'en-US';
@@ -329,8 +330,14 @@ var pageSetup = function(){
329
330
 
330
331
  pageSetup();
331
332
  if (document.addEventListener) {
333
+ document.addEventListener('page:fetch', function(){
334
+ ajaxNote.loading();
335
+ console.log(ajaxNote);
336
+ });
337
+
332
338
  document.addEventListener('page:load', function(){
333
339
  pageSetup();
334
340
  rails.applyEvents();
341
+ ajaxNote.success();
335
342
  });
336
343
  }
@@ -24,6 +24,9 @@ var Ajaxify = new Class({
24
24
 
25
25
  initialize: function(_options) {
26
26
  this.setOptions(_options);
27
+ },
28
+
29
+ setup: function(){
27
30
  this.holder = this.options.holder.inject(document.body);
28
31
  },
29
32
 
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: 0.5.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik