Skip to content

Commit

Permalink
Signed-off-by: Ricardo Godoy <[email protected]>
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Godoy committed Feb 2, 2013
1 parent d8249d8 commit 500cdb0
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions adicionar_local.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,7 @@ <h2 class="p3" style="display:none;">Terceiro passo</h2>
}

function step3 (evt) {
var pick = new MozActivity({
name: "pick",
data:{
type:["image/png", "image/jpg", "image/jpeg"]
}
});

pick.onsuccess = function () {
var img = document.createElement("img");
img.src = window.URL.createObjectURL(this.result.blob);
document.querySelector("#image-presenter").appendChild(img);
};

pick.onerror = function () {
//console.log("An error occurred");
};
alert($('form').serialize());
}

document.querySelector("#step1").addEventListener('click',step1);
Expand Down

0 comments on commit 500cdb0

Please sign in to comment.