signatureRender: function () {
var _myH = "";
var self = this;
self.myStauts = true;
var _height = $("body").height()*0.6;
var _width = $(window).width()*0.95;
this.$("._signature-container").remove();
this.$el.append(_.template(this.signatureTpl)())
this.$el.find("-sharpsignature").jSignature({
width:_width +"px",
height: _height+"px",
"background-color": "-sharpf5f5f5",
color: "red"
});
},
signatureOk: function () {
var datapair = this.$el.find("-sharpsignature").jSignature("getData", "image");
var _length = this.$el.find("-sharpsignature").jSignature("getData", "native").length;
var i = new Image();
i.src = "data:" + datapair[0] + "," + datapair[1];
this.$el.find("-sharpparentSignature").html($(i));
this.$el.find("-sharpparentSignature img").attr("data-length", _length)
this.$("._signature-container").remove();
this.$el.find(".next-btn").attr("data-type", 1)
},
signatureCancel: function () {
this.$el.find("-sharpsignature").jSignature("reset");
},