From 39f2d2fa40d6024f0de4a215e7596abb9e2e114a Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 30 Nov 2013 16:38:07 -0500 Subject: [PATCH] #2050: Improve displayed id parsing --- app/assets/javascripts/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index d6f991203..4af14a4ac 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -353,7 +353,7 @@ $("#copy-notes").click(function(e) { var current_post_id = $("meta[name=post-id]").attr("content"); - var other_post_id = parseInt(prompt("Enter the ID of the post to copy all notes to:")); + var other_post_id = parseInt(prompt("Enter the ID of the post to copy all notes to:"), 10); if (other_post_id !== null) { $.ajax("/posts/" + current_post_id + "/copy_notes", {