commit.js: Fix discardHunk functionality

When rewriting big parts of commit.js, JD forgot to use the new function
for the "Discard hunk" functionality as well. This fixes that.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
This commit is contained in:
Johannes Gilger
2009-09-02 16:44:50 +02:00
committed by Pieter de Bie
parent a8f4304f86
commit d3cb020598
+1 -1
View File
@@ -240,7 +240,7 @@ var addHunk = function(hunk, reverse)
var discardHunk = function(hunk, event)
{
var hunkText = getHunkText(hunk);
var hunkText = getFullHunk(hunk);
if (Controller.discardHunk_altKey_) {
Controller.discardHunk_altKey_(hunkText, event.altKey == true);