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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94b40b42f3c1600da39343eeaf9d5cac76d9c8b6
4
- data.tar.gz: 953a8859907f6140a7d80a3ba1f49cf579905372
3
+ metadata.gz: 5d675a43a89563ae7dcb48ed86944d8f55cb1e8b
4
+ data.tar.gz: 0fb8f513f99daa88419e0ac170f51541e0867688
5
5
  SHA512:
6
- metadata.gz: ac074bfe1bdf1986dd8e155d854e481147f1686e06ed41d59560b64c8db6b45721f767aa064ab551274b4a08296c32392d7ca24d66a3804c0b25a4e87bfaad07
7
- data.tar.gz: 7aa4a4c91d46cbb873988248771847470b8d229f1490cc2802865c74174589ed7f5a5bede20dfe9594415c2809597da6f20b41096cd6c44c752efea90f05fede
6
+ metadata.gz: 57a7d45a7a0c8c4b709b516e1badbc0adbc4f131a38362c7d249e5071f98a90c1ae89fb7f3ad4cfe44764da39cfa8e8551357c624226700e813753a240a459c9
7
+ data.tar.gz: c5cd6c88300b5c4c8ca8f8449b008d4582e4f442b7d87f9ce687d288901afc5234cf6262ee2136f6bb7f6452e6a501b149cb6d5a00a59a1bcddd27de1b1d6f31
@@ -1,26 +1,26 @@
1
1
  <script>
2
2
  window.Cobot = window.Cobot || {};
3
- window.Cobot.iframeResize = function(height) {
4
- if(window.top !== window) {
5
- window.socket.postMessage(height || window.Cobot.iframeHeight());
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
- window.Cobot.scrollTop = 0;
12
- easyXDM.query = <%== xdm_params.to_json %>;
13
- window.socket = new easyXDM.Socket({
14
- onReady: function() {
15
- setTimeout(function() {
16
- window.Cobot.iframeResize();
17
- }, 100);
18
- },
19
- onMessage: function(message) {
20
- var message = JSON.parse(message);
21
- if(message.scrollTop) {
22
- window.Cobot.scrollTop = message.scrollTop;
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>
@@ -1,3 +1,3 @@
1
1
  module CobotClient
2
- VERSION = "0.6.3"
2
+ VERSION = "0.6.4"
3
3
  end
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2014-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus