Fixes #40: History from "Note edit" does not work
This commit is contained in:
@@ -345,11 +345,11 @@ Danbooru.Note = {
|
|||||||
history: function() {
|
history: function() {
|
||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
var id = $this.data("id");
|
var id = $this.data("id");
|
||||||
$(this).dialog("close");
|
console.log("this=%o id=%o", $this, id);
|
||||||
|
|
||||||
if (id.match(/\d/)) {
|
if (id.match(/\d/)) {
|
||||||
window.href = "/note_versions?search[note_id]=" + id;
|
window.location.href = "/note_versions?search[note_id_eq]=" + id;
|
||||||
}
|
}
|
||||||
|
$(this).dialog("close");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user