Permalink
Browse files

Issue #180 - cleaning up for Share intent

  • Loading branch information...
1 parent 5bde8f2 commit b12e8a798c2eaac06e274882412a507b104d8a90 @PaulKinlan committed Oct 5, 2012
Deleted file not rendered
@@ -108,7 +108,6 @@ var updateImage = function(data) {
else {
$('#save').show();
$('#share').show();
- $('#sharelink').show();
$('input').show();
$('h2').hide();
}
@@ -186,7 +185,6 @@ $(function() {
$('#container').click(function() {
$('#save').hide();
$('#share').hide();
- $('#sharelink').hide();
$('#done').hide();
var i = new Intent("http://webintents.org/pick", "image/*");
@@ -220,12 +218,6 @@ $(function() {
startActivity.call(window.navigator, i);
});
-
- $('#sharelink').click(function() {
- var url = "http://www.mememator.com/image/" + imageID + ".html";
- var i = new Intent("http://webintents.org/share", "text/uri-list", url);
- startActivity.call(window.navigator, i);
- });
$('#top').change(function() { redrawImage(); });
$('#bottom').change(function() { redrawImage(); });
@@ -1,16 +0,0 @@
-var Intent = window.Intent || window.WebKitIntent;
-var startActivity = window.navigator.startActivity || window.navigator.webkitStartActivity;
-window.intent = window.intent || window.webkitIntent;
-
-$(function() {
- $('#images img').click(function(e) {
- if(!!window.intent == false) {
- var i = new Intent("http://webintents.org/edit", "image/*", this.src);
- startActivity.call(window.navigator, i);
- }
- else {
- window.intent.postResult(this.src);
- setTimeout(function() { window.close(); }, 1000);
- }
- });
-});

0 comments on commit b12e8a7

Please sign in to comment.