#2050: Improve displayed id parsing
This commit is contained in:
@@ -353,7 +353,7 @@
|
|||||||
|
|
||||||
$("#copy-notes").click(function(e) {
|
$("#copy-notes").click(function(e) {
|
||||||
var current_post_id = $("meta[name=post-id]").attr("content");
|
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) {
|
if (other_post_id !== null) {
|
||||||
$.ajax("/posts/" + current_post_id + "/copy_notes", {
|
$.ajax("/posts/" + current_post_id + "/copy_notes", {
|
||||||
|
|||||||
Reference in New Issue
Block a user