Conversion to token
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -85,7 +85,7 @@
|
||||
|
||||
});
|
||||
|
||||
function progressUpdateCallback_<%=this.GuidString%>(progress) {
|
||||
function progressUpdateCallback_<%=this.GuidToken%>(progress) {
|
||||
|
||||
$("#<%=this.ClientID %>_DivProgressPdfConvert .progressbar-value").animate(
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user