cobot_client 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/cobot_client/_resize_script.html.erb +21 -21
- data/lib/cobot_client/version.rb +1 -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: 5d675a43a89563ae7dcb48ed86944d8f55cb1e8b
|
4
|
+
data.tar.gz: 0fb8f513f99daa88419e0ac170f51541e0867688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a7d45a7a0c8c4b709b516e1badbc0adbc4f131a38362c7d249e5071f98a90c1ae89fb7f3ad4cfe44764da39cfa8e8551357c624226700e813753a240a459c9
|
7
|
+
data.tar.gz: c5cd6c88300b5c4c8ca8f8449b008d4582e4f442b7d87f9ce687d288901afc5234cf6262ee2136f6bb7f6452e6a501b149cb6d5a00a59a1bcddd27de1b1d6f31
|
@@ -1,26 +1,26 @@
|
|
1
1
|
<script>
|
2
2
|
window.Cobot = window.Cobot || {};
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}
|
7
|
-
}
|
8
|
-
window.Cobot.iframeHeight = window.Cobot.iframeHeight || function() {
|
9
|
-
$('body').outerHeight();
|
3
|
+
window.Cobot.iframeResize = function(height) {
|
4
|
+
if(window.top !== window) {
|
5
|
+
window.socket.postMessage(height || window.Cobot.iframeHeight());
|
10
6
|
}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
7
|
+
}
|
8
|
+
window.Cobot.iframeHeight = window.Cobot.iframeHeight || function() {
|
9
|
+
$('body').outerHeight();
|
10
|
+
}
|
11
|
+
window.Cobot.scrollTop = 0;
|
12
|
+
easyXDM.query = <%== xdm_params.to_json %>;
|
13
|
+
window.socket = new easyXDM.Socket({
|
14
|
+
onReady: function() {
|
15
|
+
$(window).load(function() {
|
16
|
+
window.Cobot.iframeResize();
|
17
|
+
});
|
18
|
+
},
|
19
|
+
onMessage: function(message) {
|
20
|
+
var message = JSON.parse(message);
|
21
|
+
if(message.scrollTop) {
|
22
|
+
window.Cobot.scrollTop = message.scrollTop;
|
24
23
|
}
|
25
|
-
}
|
24
|
+
}
|
25
|
+
});
|
26
26
|
</script>
|
data/lib/cobot_client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cobot_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Lang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|