Conversion to token

This commit is contained in:
Rick Falkvinge
2017-10-01 17:09:46 +02:00
parent 2c10ff2521
commit 2e903bb092
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -364,7 +364,7 @@ namespace Swarmops.Frontend.Automation
JObject data = new JObject();
data["ServerRequest"] = "ConvertPdf";
data["PdfFiles"] = JArray.FromObject(pdfsForConversion.ToArray());
data["Guid"] = (string) guid;
data["Guid"] = (string) guid.Replace("-", "_"); // convert to token
data["PersonId"] = authData.CurrentUser.Identity;
data["OrganizationId"] = authData.CurrentOrganization.Identity;
socket.Send(data.ToString());
+1 -1
View File
@@ -85,7 +85,7 @@
});
function progressUpdateCallback_<%=this.GuidString%>(progress) {
function progressUpdateCallback_<%=this.GuidToken%>(progress) {
$("#<%=this.ClientID %>_DivProgressPdfConvert .progressbar-value").animate(
{
+5
View File
@@ -38,6 +38,11 @@ namespace Swarmops.Controls.Base
public string ClientUploadStartedCallback { get; set; }
public string Cookie { get; set; }
public string GuidToken
{
get { return GuidString.Replace("-", "_"); }
}
protected void Page_Init (object sender, EventArgs e)
{
// cause master to include necessary script