[extensions-web] js: Fix display for deleted chunks on the diff viewer
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] js: Fix display for deleted chunks on the diff viewer
- Date: Tue, 31 Jan 2012 02:06:35 +0000 (UTC)
commit b4e3ad5c9413967ec235ab4eae2309531435f31e
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jan 30 21:06:03 2012 -0500
js: Fix display for deleted chunks on the diff viewer
We were accidentally showing the new chunk in the old table.
sweettooth/static/js/diff.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/static/js/diff.js b/sweettooth/static/js/diff.js
index 9598645..1a0f2cd 100644
--- a/sweettooth/static/js/diff.js
+++ b/sweettooth/static/js/diff.js
@@ -58,7 +58,7 @@ define(['jquery'], function($) {
function buildDeleteChunk(chunk, oldContents, newContents) {
return $.map(chunk.lines, function(line) {
var linum = line[1];
- var contents = newContents[linum - 1];
+ var contents = oldContents[linum - 1];
return $('<tr>', {'class': 'line deleted'}).
append($('<td>', {'class': 'old linum'}).text(linum)).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]