From a8b6ac49f53b4bc1782150210b9efb8563998a11 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 11 Sep 2011 14:39:12 -0400 Subject: [PATCH] Fixes #40: History from "Note edit" does not work --- app/assets/javascripts/notes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 55b0a3816..f4821a1fc 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -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"); } },