Fixes #40: History from "Note edit" does not work

This commit is contained in:
albert
2011-09-11 14:39:12 -04:00
parent f5d543c760
commit a8b6ac49f5

View File

@@ -345,11 +345,11 @@ Danbooru.Note = {
history: function() {
var $this = $(this);
var id = $this.data("id");
$(this).dialog("close");
console.log("this=%o id=%o", $this, id);
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");
}
},