easymarklet 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -151,6 +151,7 @@
151
151
  }
152
152
  }
153
153
  rpcConfig.local.closeFrame = this.closeFrame;
154
+ rpcConfig.local.resizeFrame = this.resizeFrame;
154
155
 
155
156
  rpcConfig.remote = {};
156
157
  for (var key in bookmarklet.producer.methods) {
@@ -28,6 +28,10 @@
28
28
  rpcConfig.remote.closeFrame = {};
29
29
  _this.closeFrame = function(){ _this.consumer.closeFrame() };
30
30
 
31
+ rpcConfig.remote.resizeFrame = {};
32
+ _this.resizeFrame = function(height){ _this.consumer.resizeFrame(height) };
33
+
34
+
31
35
  rpcConfig.local = {};
32
36
  for (var key in bookmarklet.producer.methods) {
33
37
  if (bookmarklet.producer.methods.hasOwnProperty(key)) {
@@ -50,8 +54,14 @@
50
54
  if(bookmarklet.producer.init){
51
55
  bookmarklet.producer.init();
52
56
  }
53
- //console.log("calling the remote test....");
54
- //Cicero.EasymarkletFrame.remote.alertMessage("just a test...");
57
+ var oldHeight = 0;
58
+ setInterval(function(){
59
+ var currentHeight = $('body').outerHeight(true); //document.body.scrollHeight;
60
+ if(currentHeight != oldHeight){
61
+ _this.resizeFrame(currentHeight);
62
+ oldHeight = currentHeight;
63
+ }
64
+ },200);
55
65
  }
56
66
  }, _this.createRpcConfig()
57
67
  );
@@ -1,3 +1,3 @@
1
1
  module Easymarklet
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -2,8 +2,6 @@
2
2
  <html>
3
3
  <head>
4
4
  <title><%= name.titleize %> Producer</title>
5
- <%%= stylesheet_link_tag "application", :media => "all" %>
6
- <%%= javascript_include_tag "application" %>
7
5
  <%%= csrf_meta_tags %>
8
6
  </head>
9
7
  <body>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easymarklet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-16 00:00:00.000000000 Z
12
+ date: 2012-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -212,7 +212,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
212
212
  version: '0'
213
213
  segments:
214
214
  - 0
215
- hash: -2646022179707906065
215
+ hash: -1209193470262558712
216
216
  required_rubygems_version: !ruby/object:Gem::Requirement
217
217
  none: false
218
218
  requirements:
@@ -221,7 +221,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
221
  version: '0'
222
222
  segments:
223
223
  - 0
224
- hash: -2646022179707906065
224
+ hash: -1209193470262558712
225
225
  requirements: []
226
226
  rubyforge_project:
227
227
  rubygems_version: 1.8.24