Commit 1c90bc3b authored by Oleg Korshul's avatar Oleg Korshul

refactoring

parent 466af5da
......@@ -252,7 +252,7 @@ window["DesktopOfflineAppDocumentSignatures"] = function(_json)
for (var i = 0; i < _count; i++)
{
_sign = _data[i];
_add_sign = new window["AscCommon"].asc_CSignarureLine();
_add_sign = new window["AscCommon"].asc_CSignatureLine();
_add_sign.guid = _sign["guid"];
_add_sign.valid = _sign["valid"];
......
......@@ -1264,7 +1264,7 @@
};
// signatures
baseEditorsApi.prototype.asc_AddSignarureLine2 = function(_obj)
baseEditorsApi.prototype.asc_AddSignatureLine2 = function(_obj)
{
function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }
function guid() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
......@@ -1294,7 +1294,7 @@
if (!_found)
{
var _add_sig = new AscCommon.asc_CSignarureLine();
var _add_sig = new AscCommon.asc_CSignatureLine();
_add_sig.guid = _sig.guid;
_add_sig.signer1 = _sig.signer1;
_add_sig.signer2 = _sig.signer2;
......
......@@ -121,7 +121,7 @@
View : 4
};
function asc_CSignarureLine()
function asc_CSignatureLine()
{
this.id = undefined;
this.guid = "";
......@@ -136,22 +136,22 @@
this.image = "";
}
asc_CSignarureLine.prototype.asc_getId = function(){ return this.id; };
asc_CSignarureLine.prototype.asc_setId = function(v){ this.id = v; };
asc_CSignarureLine.prototype.asc_getGuid = function(){ return this.guid; };
asc_CSignarureLine.prototype.asc_setGuid = function(v){ this.guid = v; };
asc_CSignarureLine.prototype.asc_getSigner1 = function(){ return this.signer1; };
asc_CSignarureLine.prototype.asc_setSigner1 = function(v){ this.signer1 = v; };
asc_CSignarureLine.prototype.asc_getSigner2 = function(){ return this.signer2; };
asc_CSignarureLine.prototype.asc_setSigner2 = function(v){ this.signer2 = v; };
asc_CSignarureLine.prototype.asc_getEmail = function(){ return this.email; };
asc_CSignarureLine.prototype.asc_setEmail = function(v){ this.email = v; };
asc_CSignarureLine.prototype.asc_getInstructions = function(){ return this.instructions; };
asc_CSignarureLine.prototype.asc_setInstructions = function(v){ this.instructions = v; };
asc_CSignarureLine.prototype.asc_getShowDate = function(){ return this.showDate; };
asc_CSignarureLine.prototype.asc_setShowDate = function(v){ this.showDate = v; };
asc_CSignarureLine.prototype.asc_getValid = function(){ return this.valid; };
asc_CSignarureLine.prototype.asc_setValid = function(v){ this.valid = v; };
asc_CSignatureLine.prototype.asc_getId = function(){ return this.id; };
asc_CSignatureLine.prototype.asc_setId = function(v){ this.id = v; };
asc_CSignatureLine.prototype.asc_getGuid = function(){ return this.guid; };
asc_CSignatureLine.prototype.asc_setGuid = function(v){ this.guid = v; };
asc_CSignatureLine.prototype.asc_getSigner1 = function(){ return this.signer1; };
asc_CSignatureLine.prototype.asc_setSigner1 = function(v){ this.signer1 = v; };
asc_CSignatureLine.prototype.asc_getSigner2 = function(){ return this.signer2; };
asc_CSignatureLine.prototype.asc_setSigner2 = function(v){ this.signer2 = v; };
asc_CSignatureLine.prototype.asc_getEmail = function(){ return this.email; };
asc_CSignatureLine.prototype.asc_setEmail = function(v){ this.email = v; };
asc_CSignatureLine.prototype.asc_getInstructions = function(){ return this.instructions; };
asc_CSignatureLine.prototype.asc_setInstructions = function(v){ this.instructions = v; };
asc_CSignatureLine.prototype.asc_getShowDate = function(){ return this.showDate; };
asc_CSignatureLine.prototype.asc_setShowDate = function(v){ this.showDate = v; };
asc_CSignatureLine.prototype.asc_getValid = function(){ return this.valid; };
asc_CSignatureLine.prototype.asc_setValid = function(v){ this.valid = v; };
/**
* Класс asc_CAscEditorPermissions для прав редакторов
......@@ -3195,8 +3195,8 @@
prot['Comment'] = prot.Comment;
prot['View'] = prot.View;
window["AscCommon"]["asc_CSignarureLine"] = window["AscCommon"].asc_CSignarureLine = asc_CSignarureLine;
prot = asc_CSignarureLine.prototype;
window["AscCommon"]["asc_CSignatureLine"] = window["AscCommon"].asc_CSignatureLine = asc_CSignatureLine;
prot = asc_CSignatureLine.prototype;
prot["asc_getId"] = prot.asc_getId;
prot["asc_setId"] = prot.asc_setId;
prot["asc_getGuid"] = prot.asc_getGuid;
......
......@@ -3502,7 +3502,7 @@ background-repeat: no-repeat;\
};
// signatures
asc_docs_api.prototype.asc_AddSignarureLine2 = function(_obj)
asc_docs_api.prototype.asc_AddSignatureLine2 = function(_obj)
{
function s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); }
function guid() { return s4() + s4() + '-' + s4() + '-' + s4() + '-' + s4() + '-' + s4() + s4() + s4(); }
......@@ -8266,7 +8266,7 @@ background-repeat: no-repeat;\
asc_docs_api.prototype["asc_getRequestSignatures"] = asc_docs_api.prototype.asc_getRequestSignatures;
// signatures
asc_docs_api.prototype["asc_AddSignarureLine2"] = asc_docs_api.prototype.asc_AddSignarureLine2;
asc_docs_api.prototype["asc_AddSignatureLine2"] = asc_docs_api.prototype.asc_AddSignatureLine2;
asc_docs_api.prototype["asc_Sign"] = asc_docs_api.prototype.asc_Sign;
asc_docs_api.prototype["asc_ViewSign"] = asc_docs_api.prototype.asc_ViewSign;
asc_docs_api.prototype["asc_getSignatures"] = asc_docs_api.prototype.asc_getSignatures;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment