From 098ccd30d87303606a78bd3e4150a97114948355 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 15 Oct 2017 13:28:25 +0200 Subject: [PATCH] Logic fix for header suppression --- Site/Controls/v5/Base/DropDown.ascx.cs | 2 ++ Site/Master-v5.master | 4 ++-- Site/Pages/v5/Admin/OrgSettings.aspx | 3 ++- Site/Pages/v5/Admin/OrgSettings.aspx.cs | 1 + Site/Pages/v5/Admin/OrgSettings.aspx.designer.cs | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Site/Controls/v5/Base/DropDown.ascx.cs b/Site/Controls/v5/Base/DropDown.ascx.cs index dfc84129..df3cd508 100644 --- a/Site/Controls/v5/Base/DropDown.ascx.cs +++ b/Site/Controls/v5/Base/DropDown.ascx.cs @@ -42,6 +42,8 @@ namespace Swarmops.Frontend.Controls.Base } } + public string AjaxCallbackUrl { get; set; } + public string Cookie { get; set; } } } \ No newline at end of file diff --git a/Site/Master-v5.master b/Site/Master-v5.master index 2db666fd..e405fb93 100644 --- a/Site/Master-v5.master +++ b/Site/Master-v5.master @@ -232,12 +232,12 @@ - <% if (!((this.Page as PageV5Base).IsDashboard || (this.Page as PageV5Base).SuppressStatisticHeaders)) + <% if (!((this.Page as PageV5Base).IsDashboard || (!(this.Page as PageV5Base).SuppressStatisticHeaders))) { %>
<% } %> - <% if (!((this.Page as PageV5Base).IsDashboard || (this.Page as PageV5Base).SuppressStatisticHeaders)) + <% if (!((this.Page as PageV5Base).IsDashboard || (!(this.Page as PageV5Base).SuppressStatisticHeaders))) { %>
<% } %> diff --git a/Site/Pages/v5/Admin/OrgSettings.aspx b/Site/Pages/v5/Admin/OrgSettings.aspx index 1296f64e..675212b3 100644 --- a/Site/Pages/v5/Admin/OrgSettings.aspx +++ b/Site/Pages/v5/Admin/OrgSettings.aspx @@ -51,6 +51,7 @@ if (orgSettings.AccountsVat) { $('.enableVatField').show(); + <%=this.DropVatReportFrequency.ClientID%>_val(orgSettings.VatReportFrequency); } $('#<%=this.TextGovtRegistrationId.ClientID%>_TextInput').val(orgSettings.GovernmentRegistrationId); @@ -155,7 +156,7 @@
-
+