diff --git a/js/oekaki.js b/js/oekaki.js index 2ff17fc7..c2ce92d3 100644 --- a/js/oekaki.js +++ b/js/oekaki.js @@ -6,10 +6,10 @@ var oekaki_form = '\ Oekaki\ \ \ - lol what you looking at the source for nerd\ -


\ - \ -

\ + \ +


\ + \ +

\ \ \ ' @@ -18,7 +18,7 @@ function enable_oekaki() { // Add oekaki after the file input $('input[type="file"]').parent().parent().after(oekaki_form); // Add "edit in oekaki" links - $(".fileinfo").append(' '+_('Edit in oekaki')+''); + $(".fileinfo .unimportant").append(' ['+_('Edit in oekaki')+']'); // Init oekaki vars canvas = $("#oekaki_canvas"); context = canvas[0].getContext("2d"); @@ -171,8 +171,8 @@ $("#brushsize").on("click",function(){ $(".color").on("change", setcolor); $("#text").on("click", function(e){ - text = prompt("Enter some text") || ""; - context.font = prompt("Enter font or leave alone", context.font) + text = prompt(_("Enter some text")) || ""; + context.font = prompt(_("Enter font or leave empty"), context.font) }); function clear(){ @@ -219,7 +219,7 @@ $("#fill").on("click", function(){ }); $(".edit_in_oekaki").on("click", function(){ - var img_link = $(this).parent().parent().find("a>img.post-image").parent()[0] + var img_link = $(this).parent().parent().parent().find("a>img.post-image").parent()[0] var img = new Image(); img.onload = function() { canvas[0].width = img.width; canvas[0].height = img.height;