Bugfixes for a) nondisplay of space-padded fields in table, b) multiple-item payouts

This commit is contained in:
Rick Falkvinge
2014-06-13 09:43:41 +00:00
parent f32ae238de
commit 3bb04f4ae0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -217,7 +217,7 @@ public class DataV5Base : System.Web.UI.Page
protected static string JsonSanitize (string input)
{
return input.Replace("\"", "\\\"");
return input.Replace("\"", "\\\"").Replace(" ", " ").Trim();
}
}
+2 -2
View File
@@ -71,7 +71,7 @@
$(thisIcon).css("display", "none");
$(thisIcon).attr("src", "/Images/Icons/iconshock-balloon-yes-16px.png");
$(thisIcon).attr("rel", "active");
$("#IconApproved" + $(thisIcon).attr("baseid")).fadeIn(100);
$("#IconApproved" + $(thisIcon).attr("baseid").replace(/\|/g, '')).fadeIn(100);
alertify.success(unescape(msg.d.DisplayMessage));
}
});
@@ -87,7 +87,7 @@
$.ajax({
type: "POST",
url: "PayOutMoney.aspx/UndoPayout",
data: "{'databaseId': '" + $("#IconApproval" + $(thisIcon).attr("baseid")).attr("databaseid") + "'}",
data: "{'databaseId': '" + $("#IconApproval" + $(thisIcon).attr("baseid").replace(/\|/g, '')).attr("databaseid") + "'}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {