vhx-quartz 0.9.3 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vhx/quartz/version.rb +1 -1
- data/vendor/assets/javascripts/vhx-quartz.sidebar.js +13 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d3d4daccefb9b85e8ca9b864a6450892cd91fe83
|
|
4
|
+
data.tar.gz: 3364f63055b96a0c39d4a7dccf23fb70e47fbb16
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bd174c84c1e9a5e2a04706c67e4ac9ffd574414413d14e5e7c7e932eb637fba872533707f08dff392ba4c274c476147fd02aed8e7a9eba231c27c098a36a8a1
|
|
7
|
+
data.tar.gz: a030d34410fff82f0800a5b62b01999c0597bfc0f021ada4e137b6c4d23ccb91127490c618ba6638c644a277e2cbcd6a4a39adb146d2b17f61df731a72c9f334
|
data/lib/vhx/quartz/version.rb
CHANGED
|
@@ -20,6 +20,9 @@ vhxm.components.shared.sidebar.controller = function (opts) {
|
|
|
20
20
|
if (opts.onClose) {
|
|
21
21
|
vhxm.components.shared.sidebar.state.onClose = self.opts.onClose;
|
|
22
22
|
}
|
|
23
|
+
if (opts.onBeforeClose) {
|
|
24
|
+
vhxm.components.shared.sidebar.state.onBeforeClose = self.opts.onBeforeClose;
|
|
25
|
+
}
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
self.documentClickHandler = function (event) {
|
|
@@ -85,13 +88,21 @@ vhxm.components.shared.sidebar.controller = function (opts) {
|
|
|
85
88
|
vhxm.components.shared.sidebar.toggle = function (state, route) {
|
|
86
89
|
state = state === 'open' ? true : false;
|
|
87
90
|
|
|
88
|
-
|
|
91
|
+
var done = function done() {
|
|
89
92
|
vhxm.components.shared.sidebar.state.isOpen(state);
|
|
90
93
|
if (route) {
|
|
91
94
|
return m.route(route);
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
m.redraw();
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
if (vhxm.components.shared.sidebar.state.isOpen() && !state || !vhxm.components.shared.sidebar.state.isOpen() && state) {
|
|
101
|
+
if (!state) {
|
|
102
|
+
vhxm.components.shared.sidebar.state.onBeforeClose(done);
|
|
103
|
+
} else {
|
|
104
|
+
done();
|
|
105
|
+
}
|
|
95
106
|
}
|
|
96
107
|
};
|
|
97
108
|
|
|
@@ -114,6 +125,7 @@ vhxm.components.shared.sidebar.state = {
|
|
|
114
125
|
isLoaded: m.prop(false),
|
|
115
126
|
skipTransition: m.prop(false),
|
|
116
127
|
template: m.prop(null),
|
|
128
|
+
onBeforeClose: function onBeforeClose() {},
|
|
117
129
|
onClose: function onClose() {},
|
|
118
130
|
onOpen: function onOpen() {}
|
|
119
131
|
};
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vhx-quartz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Robertson, Courtney Burton, Steven Bone, David Gonzalez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: railties
|