active_admin_pro 0.2.2 → 0.2.3

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: 8ee38e118d603c539551e99ef0057ddb5e3bc6cb
4
- data.tar.gz: 69a2d60f5f7d6d180998ab57b69cd7670074a4d0
3
+ metadata.gz: 57cfbcfe11ad84044e76b2eb7e96831c47fd8083
4
+ data.tar.gz: 29c0eb86e495f393b30880ffea80b18ff041a9cf
5
5
  SHA512:
6
- metadata.gz: 86fbbe2f7f0216dfbd73ddf04037c3777512c91e91b639ab81234f681524d16c806b6a4a4ac89492c5bfefe19343bbcfa1ec2c28064d2c89c510c207bbe82c09
7
- data.tar.gz: 5aed5cf14a0c30297857f672ad535e1aaca4d7d466f3aa90ca9624e528cf9bb6db11ea028521d6d7cd21f6b8ad06fd57743ff1616a400148ac6c0a57147fd5ed
6
+ metadata.gz: 359cfead85fa02459c1fa92c562bbc45386460259c4ad4fc8955846a18896cb22bff192b945bf1cd625f9b530cf1054bbdcdb7cb8c028f23deddb19a92e34cce
7
+ data.tar.gz: 54711322a7660170a9118068cc54891505de9ed18eda739b894cb826b7fc204284a22322be272ece70d3cc0e560ece8f57f568b9fc0fc10b04763d0edf44d4ff
@@ -3,18 +3,19 @@
3
3
 
4
4
  var body, links;
5
5
 
6
- // Add active class on click to style while loading via turbolinks
7
- // and add loading class to the body element.
8
6
  App.register('component').enter(function() {
9
7
  body = $('body');
10
8
  links = $('a:not([data-method="delete"]):not([data-action="destroy"]):not(.has_many_add):not(.dropdown_menu_button):not([target="_blank"])');
11
9
 
10
+ // Add 'loading' class to the body when a link is clicked,
11
+ // add add 'active' class to the clicked link.
12
12
  links.click(function() {
13
+ links.removeClass('active');
13
14
  body.addClass('loading');
14
15
  $(this).addClass('active');
15
16
  });
16
17
  }).exit(function() {
17
- // Remove loading and active classes on page unload
18
+ // Remove the classes when the body is unloaded
18
19
  body.removeClass('loading');
19
20
  links.removeClass('active');
20
21
  });
@@ -14,3 +14,7 @@ a {
14
14
  color: $link-color-active;
15
15
  }
16
16
  }
17
+
18
+ body.loading a.active {
19
+ cursor: wait;
20
+ }
@@ -36,25 +36,3 @@ html.turbolinks-progress-bar::before {
36
36
  background-color: $accent-color !important;
37
37
  height: 4px !important;
38
38
  }
39
-
40
- body:after {
41
- @include transition(background-color 1s ease);
42
- background-color: rgba(0, 0, 0, 0);
43
- bottom: 0;
44
- content: "";
45
- cursor: wait;
46
- left: 999999px;
47
- position: fixed;
48
- top: 4px;
49
- width: 100%;
50
- z-index: 999999;
51
- }
52
-
53
- body.loading {
54
- cursor: wait;
55
-
56
- &:after {
57
- background-color: rgba(color($primary-color, 900), 0.2);
58
- left: 0;
59
- }
60
- }
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminPro
2
- VERSION = "0.2.2".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin