Skip to content
This repository
Browse code

Issue #180 - Making Mememator share the correct object

  • Loading branch information...
commit 545ce26d3260a690808800115633b7d3c82c315b 1 parent 12decf2
authored October 05, 2012
3  server/demos/mememator/pages/index.html
@@ -17,8 +17,7 @@
17 17
 						<div id="actions" class="cf">
18 18
 							<span id="done" class="btn">Done Editing</span>
19 19
 							<span id="save" class="btn">Save Meme</span>
20  
-							<span id="share" class="btn">Share Image</span>
21  
-							<span id="sharelink" class="btn">Share Link</span>
  20
+							<span id="share" class="btn">Share Meme</span>
22 21
 						</div>
23 22
 					</div>
24 23
 {% endblock %}
13  server/demos/mememator/static/scripts/index.js
@@ -206,7 +206,18 @@ $(function() {
206 206
   $('#share').click(function() {
207 207
     var canvas = $('#container canvas')[0];
208 208
     var data = createBlobFromCanvas(canvas); 
209  
-    var i = new Intent("http://webintents.org/share", "image/png", data);
  209
+    var url = "http://www.mememator.com/image/" + imageID + ".png"
  210
+    var params = {
  211
+      "action": "http://webintents.org/share",
  212
+      "type": type,
  213
+      "data": {
  214
+        "url": url,
  215
+        "blob": data
  216
+      }
  217
+    };
  218
+
  219
+    var i = new Intent(params);
  220
+
210 221
     startActivity.call(window.navigator, i);
211 222
   });
212 223
  

0 notes on commit 545ce26

Please sign in to comment.
Something went wrong with that request. Please try again.