From d5308947aad12545c5166f650880165744667f19 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 3 Mar 2018 21:37:42 +0100 Subject: [PATCH] Trying to fix weird language mixing compilation error --- Site/Controls/v5/Financial/ComboBudgets.ascx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Site/Controls/v5/Financial/ComboBudgets.ascx b/Site/Controls/v5/Financial/ComboBudgets.ascx index 780e062e..8b918407 100644 --- a/Site/Controls/v5/Financial/ComboBudgets.ascx +++ b/Site/Controls/v5/Financial/ComboBudgets.ascx @@ -15,7 +15,7 @@ <% if (!SuppressPrompt) { - Response.Write ("$('#" + this.ClientID + "_SpanBudgets span.combo input.textbox-text').val('" + SwarmopsJS.unescape('<%=this.Localized_DropInit%>') + "');"); + Response.Write ("$('#" + this.ClientID + "_SpanBudgets span.combo input.textbox-text').val(comboBudgetsDropInit);"); } if (!String.IsNullOrEmpty(this.OnClientLoaded)) { @@ -53,6 +53,8 @@ }); }); + var comboBudgetsDropInit = SwarmopsJS.unescape('<%=this.Localized_DropInit%>'); + function <%=this.ClientID %>_val(newValue) { if (newValue === undefined) { // getter @@ -65,7 +67,7 @@ } else { $('#<%=this.ClientID %>_DropBudgets').combotree('setValue', { id: 0, - text: SwarmopsJS.unescape('<%=this.Localized_DropInit%>') + text: comboBudgetsDropInit }); }