Fix for mass send categories
This commit is contained in:
@@ -9,16 +9,18 @@
|
||||
$(document).ready(function () {
|
||||
// Document.Ready() goes here
|
||||
|
||||
$('#<%=this.DropRecipientClasses.ClientID%>').change (function() {
|
||||
$('#<%=this.DropRecipientClasses.ClientID%>').change(function() {
|
||||
onGeographyChange(selectedGeographyId); // does the same thing anyway
|
||||
})
|
||||
});
|
||||
|
||||
updateRecipientCount(selectedReceipientClass, selectedGeographyId);
|
||||
});
|
||||
|
||||
var selectedReceipientClass = 1;
|
||||
var selectedGeographyId = 1; // TODO: SET ROOT GEOGRAPHY BY AUTHORITY/ACCESS
|
||||
|
||||
function onGeographyChange(newGeographyId) {
|
||||
var recipientClass = $('#<%=this.DropRecipientClasses.ClientID %>').val();
|
||||
var recipientClass = <%=this.DropRecipientClasses.ClientID %>_val();
|
||||
|
||||
updateRecipientCount(recipientClass, newGeographyId);
|
||||
selectedGeographyId = newGeographyId;
|
||||
@@ -65,7 +67,7 @@
|
||||
<asp:Label ID="LabelRecipientType" runat="server" /><br/>
|
||||
<asp:Label ID="LabelGeography" runat="server" /><br/>
|
||||
</div>
|
||||
<h2 style="padding-top:15px"><asp:Label ID="LabelHeaderMessage" runat="server" /> (<span id="spanRecipientCount">0</span>)</h2>
|
||||
<h2 style="padding-top:15px"><asp:Label ID="LabelHeaderMessage" runat="server" /> (<span id="spanRecipientCount">...</span>)</h2>
|
||||
<asp:TextBox runat="server" TextMode="MultiLine" Rows="10" ID="TextMessage" Text="This page is a mockup for now; it doesn't actually send anything. What you want to try is to send to the [Regulars] recipients and see how the recipient count changes with choice of geography." />
|
||||
<asp:Button runat="server" CssClass="buttonAccentColor" Text="Foo" OnClientClick="onClickSend(); return false;" ID="ButtonSend" /><asp:Button runat="server" CssClass="buttonAccentColor" OnClientClick="onClickTest(); return false;" Text="Bar" ID="ButtonTest" />
|
||||
<div style="clear:both"></div>
|
||||
|
||||
@@ -35,7 +35,6 @@ namespace Swarmops.Frontend.Pages.Comms
|
||||
this.LabelHeaderMessage.Text = Resources.Pages.Comms.SendMassMessage_HeaderMessage;
|
||||
|
||||
this.DropRecipientClasses.Items.Clear();
|
||||
this.DropRecipientClasses.Items.Add (new ListItem (Global.Global_SelectOne, "0"));
|
||||
this.DropRecipientClasses.Items.Add (new ListItem (Participant.Localized(CurrentOrganization.RegularLabel, TitleVariant.Plural), "1"));
|
||||
this.DropRecipientClasses.Items.Add (new ListItem (Participant.Localized(CurrentOrganization.ActivistLabel, TitleVariant.Plural), "2"));
|
||||
// TODO: Room for dynamic membership types here
|
||||
|
||||
Reference in New Issue
Block a user