Changed loc convention (this removes a JS warning)

This commit is contained in:
Rick Falkvinge
2016-10-01 17:17:52 +02:00
parent aaf8df2f66
commit 1a97d1baa2
3 changed files with 8 additions and 12 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
var rowCount = $(this).datagrid('getRows').length;
$("#spanHitCount").text(rowCount);
if (rowCount == 1000) {
alertify.log(SwarmopsJS.unescape('<asp:Literal ID="LiteralNoticeTooManyHits" runat="server"/>'));
alertify.log(SwarmopsJS.unescape('<%= this.Localized_NoticeTooManyHits %>'));
}
// Leaving some remnant code from PayOutMoney in here for now, as similar code will be needed
+7 -2
View File
@@ -41,8 +41,6 @@ namespace Swarmops.Frontend.Pages.Swarm
this.LabelGridHeaderName.Text = Global.Global_Name;
this.LabelGridHeaderPhone.Text = Global.Global_Phone;
this.LabelGridHeaderNotes.Text = Global.Global_Notes;
this.LiteralNoticeTooManyHits.Text = JavascriptEscape(Resources.Pages.Swarm.ListFindPeople_TooManyHits);
}
[WebMethod]
@@ -116,5 +114,12 @@ namespace Swarmops.Frontend.Pages.Swarm
public string DisplayMessage;
public bool Success;
}
// ReSharper disable once InconsistentNaming
public string Localized_NoticeTooManyHits
{
get { return JavascriptEscape(Resources.Pages.Swarm.ListFindPeople_TooManyHits); }
}
}
}
-9
View File
@@ -12,15 +12,6 @@ namespace Swarmops.Frontend.Pages.Swarm {
public partial class ListFindPeople {
/// <summary>
/// LiteralNoticeTooManyHits control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Literal LiteralNoticeTooManyHits;
/// <summary>
/// ComboGeographies control.
/// </summary>