#2050: Improve displayed id parsing

This commit is contained in:
Toks
2013-11-30 16:38:07 -05:00
parent 2b345864df
commit 39f2d2fa40

View File

@@ -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", {