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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57cfbcfe11ad84044e76b2eb7e96831c47fd8083
|
4
|
+
data.tar.gz: 29c0eb86e495f393b30880ffea80b18ff041a9cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
18
|
+
// Remove the classes when the body is unloaded
|
18
19
|
body.removeClass('loading');
|
19
20
|
links.removeClass('active');
|
20
21
|
});
|
@@ -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
|
-
}
|
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.
|
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-
|
11
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|