From 7e5af099e2d0414e7bbddcd1ca5376d8425c2b65 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 2 Jan 2018 12:48:30 +0100 Subject: [PATCH] Small fixes --- Common/Enums/DocumentType.cs | 7 ++++++- Logic/Support/Document.cs | 4 ++++ Site/Pages/v5/Ledgers/InspectLedgers.aspx | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Common/Enums/DocumentType.cs b/Common/Enums/DocumentType.cs index 244bf47e..0c33f969 100644 --- a/Common/Enums/DocumentType.cs +++ b/Common/Enums/DocumentType.cs @@ -62,6 +62,11 @@ namespace Swarmops.Common.Enums /// /// Other artwork (public) /// - Artwork + Artwork, + + /// + /// There really isn't a standalone doctype for this but still + /// + Payout } } \ No newline at end of file diff --git a/Logic/Support/Document.cs b/Logic/Support/Document.cs index 7f919cba..e12d4d8d 100644 --- a/Logic/Support/Document.cs +++ b/Logic/Support/Document.cs @@ -144,6 +144,10 @@ namespace Swarmops.Logic.Support { return DocumentType.ExternalActivityPhoto; } + else if (foreignObject is Payout) + { + return DocumentType.Payout; + } else { throw new ArgumentException ("Unrecognized foreign object type:" + foreignObject.GetType().ToString()); diff --git a/Site/Pages/v5/Ledgers/InspectLedgers.aspx b/Site/Pages/v5/Ledgers/InspectLedgers.aspx index bedc1bd7..4200d3ee 100644 --- a/Site/Pages/v5/Ledgers/InspectLedgers.aspx +++ b/Site/Pages/v5/Ledgers/InspectLedgers.aspx @@ -90,7 +90,7 @@ onLoadSuccess: function() { $('div.treegrid').css('opacity', 1); - $("td > div > span.tx-description").each(function() { + $("td > div > span.tx-description:not(:first)").each(function() { var parent = $(this).parent(); var grandParent = parent.parent();