Debugging Mono Ajax calls II
This commit is contained in:
@@ -299,6 +299,7 @@ public class AuthenticationData
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class AjaxCallResult
|
||||
{
|
||||
public bool Success { get; set; }
|
||||
@@ -306,6 +307,7 @@ public class AjaxCallResult
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class AjaxInputCallResult: AjaxCallResult
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -212,6 +212,7 @@ namespace Swarmops.Frontend.Automation
|
||||
return new AjaxCallResult {Success = true, DisplayMessage = Geography.FromIdentity (geographyId).Name};
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class PersonEditorData : AjaxCallResult
|
||||
{
|
||||
// Personal Details tab
|
||||
@@ -231,6 +232,8 @@ namespace Swarmops.Frontend.Automation
|
||||
[WebMethod]
|
||||
public static PersonEditorData GetPersonEditorData (int personId)
|
||||
{
|
||||
return null;
|
||||
|
||||
AuthenticationData authData = GetAuthenticationDataAndCulture();
|
||||
bool self = false;
|
||||
|
||||
|
||||
@@ -358,7 +358,7 @@
|
||||
_master_PersonEditedId = personId;
|
||||
|
||||
SwarmopsJS.ajaxCall('/Automation/SwarmFunctions.aspx/GetPersonEditorData', personEditorData, function(data) {
|
||||
if (data.Success) {
|
||||
if (data != null && data.Success) {
|
||||
$('span.spanModalEditingPersonName').text(data.Name);
|
||||
|
||||
<%= this.MasterEditPersonName.ClientID %>_initialize(data.Name);
|
||||
|
||||
Reference in New Issue
Block a user