Fixed JSON/jQuery/Ajax/UrlRewrite conflict
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "EditOrganization.aspx/SwitchToggled",
|
||||
url: "/Pages/v5/Admin/EditOrganization.aspx/SwitchToggled",
|
||||
data: $.toJSON(jsonData),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "EditOrganization.aspx/GetInitialData",
|
||||
url: "/Pages/v5/Admin/EditOrganization.aspx/GetInitialData",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
function onGeographyChange(newGeographyId) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "SendMassMessage.aspx/GetRecipientCount",
|
||||
url: "/Pages/v5/Comms/SendMassMessage.aspx/GetRecipientCount",
|
||||
data: "{'recipientTypeId': '" + $('#<%=this.DropRecipientClasses.ClientID %>').val() + "', 'geographyId':'" + newGeographyId + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AttestCosts.aspx/Attest",
|
||||
url: "/Pages/v5/Financial/AttestCosts.aspx/Attest",
|
||||
data: "{'identifier': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -87,7 +87,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AttestCosts.aspx/Deattest",
|
||||
url: "/Pages/v5/Financial/AttestCosts.aspx/Deattest",
|
||||
data: "{'identifier': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "PayOutMoney.aspx/ConfirmPayout",
|
||||
url: "/Pages/v5/Financial/PayOutMoney.aspx/ConfirmPayout",
|
||||
data: "{'protoIdentity': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -84,7 +84,7 @@
|
||||
$(this).attr("src", "/Images/Abstract/ajaxloader-medium.gif");
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "PayOutMoney.aspx/UndoPayout",
|
||||
url: "/Pages/v5/Financial/PayOutMoney.aspx/UndoPayout",
|
||||
data: "{'databaseId': '" + $("#IconApproval" + $(thisIcon).attr("baseid").replace(/\|/g, '')).attr("databaseid") + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ValidateReceipts.aspx/Validate",
|
||||
url: "/Pages/v5/Financial/ValidateReceipts.aspx/Validate",
|
||||
data: "{'identifier': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -87,7 +87,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ValidateReceipts.aspx/Devalidate",
|
||||
url: "/Pages/v5/Financial/ValidateReceipts.aspx/Devalidate",
|
||||
data: "{'identifier': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -104,7 +104,7 @@
|
||||
if (hostName && hostName.length > 0 && hostAddress && hostAddress.length > 0) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/VerifyHostNameAndAddress",
|
||||
url: "/Pages/v5/Init/Default.aspx/VerifyHostNameAndAddress",
|
||||
data: "{'name': '" + escape(hostName) + "', 'address': '" + escape(hostAddress) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -129,7 +129,7 @@
|
||||
if (isValid) { // Validate writability of config file
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/IsConfigurationFileWritable",
|
||||
url: "/Pages/v5/Init/Default.aspx/IsConfigurationFileWritable",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -177,7 +177,7 @@
|
||||
// also, won't get re-enabled no matter the outcome
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/FirstCredentialsTest",
|
||||
url: "/Pages/v5/Init/Default.aspx/FirstCredentialsTest",
|
||||
data: "{" +
|
||||
"'readDatabase':'" + $('#<%=this.TextCredentialsReadDatabase.ClientID %>').val() + "',"+
|
||||
"'readServer':'" + $('#<%=this.TextCredentialsReadServer.ClientID %>').val() + "',"+
|
||||
@@ -261,7 +261,7 @@
|
||||
if (isValid) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/CreateFirstUser",
|
||||
url: "/Pages/v5/Init/Default.aspx/CreateFirstUser",
|
||||
data: "{'name': '" + escape($('#<%=this.TextFirstUserName.ClientID %>').val()) + "', 'mail': '" + escape($('#<%=this.TextFirstUserMail.ClientID %>').val()) + "', 'password': '" + escape($('#<%=this.TextFirstUserPassword1.ClientID %>').val()) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -306,7 +306,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/ResetTestCredentials",
|
||||
url: "/Pages/v5/Init/Default.aspx/ResetTestCredentials",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -321,7 +321,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/IsConfigurationFileWritable",
|
||||
url: "/Pages/v5/Init/Default.aspx/IsConfigurationFileWritable",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -346,7 +346,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/GetInitProgress",
|
||||
url: "/Pages/v5/Init/Default.aspx/GetInitProgress",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -381,7 +381,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/GetInitProgressMessage",
|
||||
url: "/Pages/v5/Init/Default.aspx/GetInitProgressMessage",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -411,7 +411,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/RecheckDatabasePermissions",
|
||||
url: "/Pages/v5/Init/Default.aspx/RecheckDatabasePermissions",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -462,7 +462,7 @@
|
||||
function beginInitDatabase() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "Default.aspx/InitDatabase",
|
||||
url: "/Pages/v5/Init/Default.aspx/InitDatabase",
|
||||
data: "{}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
$('#TextAccountName').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountName",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountName",
|
||||
data: "{'accountId': '" + escape(accountId) + "', 'name':'" + escape(newAccountName) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -124,7 +124,7 @@
|
||||
$('#TextAccountBudget').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountBudget",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountBudget",
|
||||
data: "{'accountId': '" + escape(accountId) + "', 'budget':'" + escape(newAccountBudget) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -168,7 +168,7 @@
|
||||
$(this).css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountInitialBalance",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountInitialBalance",
|
||||
data: $.toJSON(jsonData),
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -200,7 +200,7 @@
|
||||
function addAccount() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/CreateAccount",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/CreateAccount",
|
||||
data: "{'accountType': '" + accountType + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -314,7 +314,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountSwitch",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountSwitch",
|
||||
data: callParameters,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -365,7 +365,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/GetAccountData",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/GetAccountData",
|
||||
data: "{'accountId': '" + escape(accountId) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -408,7 +408,7 @@
|
||||
$('span#<%= DropOwner.ClientID %>_SpanPeople span input.combo-text').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountOwner",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountOwner",
|
||||
data: "{'accountId':'" + escape(accountId) + "','newOwnerId':'" + escape(personId) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -455,7 +455,7 @@
|
||||
$('span#<%= DropParents.ClientID %>_SpanBudgets span input.combo-text').css('background-color', '#FFFFE0');
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "AccountPlan.aspx/SetAccountParent",
|
||||
url: "/Pages/v5/Ledgers/AccountPlan.aspx/SetAccountParent",
|
||||
data: "{'accountId':'" + escape(accountId) + "','parentAccountId':'" + escape(parentAccountId) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -136,8 +136,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
(
|
||||
"N0");
|
||||
result.InitialBalance =
|
||||
(accountTree.GetDeltaCents (new DateTime (1900, 1, 1),
|
||||
new DateTime (authData.CurrentOrganization.FirstFiscalYear, 1, 1)).ToString ("N2"));
|
||||
((accountTree.GetDeltaCents (new DateTime (1900, 1, 1),
|
||||
new DateTime (authData.CurrentOrganization.FirstFiscalYear, 1, 1))/100.0).ToString ("N2"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ResyncExternalAccount.aspx/InitializeProcessing",
|
||||
url: "/Pages/v5/Ledgers/ResyncExternalAccount.aspx/InitializeProcessing",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>', 'accountIdString':'" + $('#<%= this.DropAccounts.ClientID %>').val() + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -97,7 +97,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ResyncExternalAccount.aspx/GetProcessingProgress",
|
||||
url: "/Pages/v5/Ledgers/ResyncExternalAccount.aspx/GetProcessingProgress",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -156,7 +156,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "ResyncExternalAccount.aspx/ExecuteResync",
|
||||
url: "/Pages/v5/Ledgers/ResyncExternalAccount.aspx/ExecuteResync",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>'}",
|
||||
async: false,
|
||||
contentType: "application/json; charset=utf-8",
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "UploadBankFiles.aspx/GetAccountUploadInstructions",
|
||||
url: "/Pages/v5/Ledgers/UploadBankFiles.aspx/GetAccountUploadInstructions",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>', 'accountIdString':'" + $('#<%= this.DropAccounts.ClientID %>').val() + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -54,7 +54,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "UploadBankFiles.aspx/InitializeProcessing",
|
||||
url: "/Pages/v5/Ledgers/UploadBankFiles.aspx/InitializeProcessing",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>', 'accountIdString':'" + $('#<%= this.DropAccounts.ClientID %>').val() + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -84,7 +84,7 @@
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "UploadBankFiles.aspx/GetReportedImportResults",
|
||||
url: "/Pages/v5/Ledgers/UploadBankFiles.aspx/GetReportedImportResults",
|
||||
data: "{'guid': '<%= this.UploadFile.GuidString %>'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
var thisIcon = this;
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "PayOutMoney.aspx/ConfirmPayout",
|
||||
url: "/Pages/v5/SOMEPATH/PayOutMoney.aspx/ConfirmPayout",
|
||||
data: "{'protoIdentity': '" + escape($(this).attr("baseid")) + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
@@ -120,7 +120,7 @@
|
||||
$(this).attr("src", "/Images/Abstract/ajaxloader-medium.gif");
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "PayOutMoney.aspx/UndoPayout",
|
||||
url: "/Pages/v5/SOMEPATH/PayOutMoney.aspx/UndoPayout",
|
||||
data: "{'databaseId': '" + $("#IconApproval" + $(thisIcon).attr("baseid").replace(/\|/g, '')).attr("databaseid") + "'}",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
|
||||
Reference in New Issue
Block a user