diff --git a/EnvelopeGenerator.Web/Controllers/DocumentController.cs b/EnvelopeGenerator.Web/Controllers/DocumentController.cs index 0f12bd35..963bd218 100644 --- a/EnvelopeGenerator.Web/Controllers/DocumentController.cs +++ b/EnvelopeGenerator.Web/Controllers/DocumentController.cs @@ -41,34 +41,35 @@ namespace EnvelopeGenerator.Web.Controllers } } - [HttpPost] - [Route("api/document/{envelopeKey}")] - public async Task Update(string envelopeKey) - { - try - { - logger.Info("DocumentController/Update"); + + //[HttpPost] + //[Route("api/document/{envelopeKey}")] + //public async Task Update(string envelopeKey) + //{ + // try + // { + // logger.Info("DocumentController/Update"); - // Validate Envelope Key and load envelope - envelopeService.EnsureValidEnvelopeKey(envelopeKey); - EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey); + // // Validate Envelope Key and load envelope + // envelopeService.EnsureValidEnvelopeKey(envelopeKey); + // EnvelopeResponse response = envelopeService.LoadEnvelope(envelopeKey); - // Load Document info - var Request = ControllerContext.HttpContext.Request; - var document = envelopeService.GetDocument(Request, envelopeKey); + // // Load Document info + // var Request = ControllerContext.HttpContext.Request; + // var document = envelopeService.GetDocument(Request, envelopeKey); - // Update the document with new data - await envelopeService.UpdateDocument(Request.Body, document.Filepath); + // // Update the document with new data + // await envelopeService.UpdateDocument(Request.Body, document.Filepath); - // Add history entry - envelopeService.InsertHistoryEntrySigned(response); + // // Add history entry + // envelopeService.InsertHistoryEntrySigned(response); - return Ok(); - } - catch (Exception e) - { - return ErrorResponse(e); - } - } + // return Ok(); + // } + // catch (Exception e) + // { + // return ErrorResponse(e); + // } + //} } } diff --git a/EnvelopeGenerator.Web/wwwroot/js/app.js b/EnvelopeGenerator.Web/wwwroot/js/app.js index 52896054..cd44bb98 100644 --- a/EnvelopeGenerator.Web/wwwroot/js/app.js +++ b/EnvelopeGenerator.Web/wwwroot/js/app.js @@ -85,19 +85,8 @@ class App { const isFormField = !!annotation.formFieldName; const isSignature = !!annotation.isSignature; - console.log("form field", isFormField, "signature", isSignature) - - //if (!isSignature) { - // return; - //} - - //if (!(isFormField && isSignature)) { - // return; - //} - if (isFormField === false && isSignature === true) { - const left = annotation.boundingBox.left - 25; const top = annotation.boundingBox.top - 25; const width = 150;