diff --git a/Site5/Master-v5.master b/Site5/Master-v5.master index 8e572c1c..4ba927d3 100644 --- a/Site5/Master-v5.master +++ b/Site5/Master-v5.master @@ -257,16 +257,6 @@ - - - - + + + + + +
+ diff --git a/Site5/Master-v5.master.cs b/Site5/Master-v5.master.cs index c12abe9a..349ae9b9 100644 --- a/Site5/Master-v5.master.cs +++ b/Site5/Master-v5.master.cs @@ -86,6 +86,8 @@ namespace Activizr this.ImageCultureIndicator.Style[HtmlTextWriterStyle.Cursor] = "pointer"; SetupDropboxes(); + + this.ButtonSwitchOrganizations.Attributes.Add("onclick", "alert ('Foo!'); $('" + this.TextSwitchToOrganizationId.ClientID + "').val($('" + this.DropSwitchOrganizations.ClientID + "').val()); $('" + this.ButtonActuatorSwitchOrganizations.ClientID + "').click();"); } private void SetupDropboxes() @@ -373,7 +375,7 @@ namespace Activizr protected void ButtonSwitchOrganizations_Click(object sender, EventArgs e) { int currentUserId = _viewingPerson.Identity; - int desiredOrganizationId = Int32.Parse(this.DropSwitchOrganizations.SelectedValue); + int desiredOrganizationId = Int32.Parse(this.TextSwitchToOrganizationId.Text); if (desiredOrganizationId != 0) {