Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
1c90bc3b
Commit
1c90bc3b
authored
May 22, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
466af5da
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
24 deletions
+24
-24
common/Local/common.js
common/Local/common.js
+1
-1
common/apiBase.js
common/apiBase.js
+2
-2
common/apiCommon.js
common/apiCommon.js
+19
-19
word/api.js
word/api.js
+2
-2
No files found.
common/Local/common.js
View file @
1c90bc3b
...
...
@@ -252,7 +252,7 @@ window["DesktopOfflineAppDocumentSignatures"] = function(_json)
for
(
var
i
=
0
;
i
<
_count
;
i
++
)
{
_sign
=
_data
[
i
];
_add_sign
=
new
window
[
"
AscCommon
"
].
asc_CSigna
r
ureLine
();
_add_sign
=
new
window
[
"
AscCommon
"
].
asc_CSigna
t
ureLine
();
_add_sign
.
guid
=
_sign
[
"
guid
"
];
_add_sign
.
valid
=
_sign
[
"
valid
"
];
...
...
common/apiBase.js
View file @
1c90bc3b
...
...
@@ -1264,7 +1264,7 @@
};
// signatures
baseEditorsApi
.
prototype
.
asc_AddSigna
r
ureLine2
=
function
(
_obj
)
baseEditorsApi
.
prototype
.
asc_AddSigna
t
ureLine2
=
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_CSigna
r
ureLine
();
var
_add_sig
=
new
AscCommon
.
asc_CSigna
t
ureLine
();
_add_sig
.
guid
=
_sig
.
guid
;
_add_sig
.
signer1
=
_sig
.
signer1
;
_add_sig
.
signer2
=
_sig
.
signer2
;
...
...
common/apiCommon.js
View file @
1c90bc3b
...
...
@@ -121,7 +121,7 @@
View
:
4
};
function
asc_CSigna
r
ureLine
()
function
asc_CSigna
t
ureLine
()
{
this
.
id
=
undefined
;
this
.
guid
=
""
;
...
...
@@ -136,22 +136,22 @@
this
.
image
=
""
;
}
asc_CSigna
r
ureLine
.
prototype
.
asc_getId
=
function
(){
return
this
.
id
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setId
=
function
(
v
){
this
.
id
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getGuid
=
function
(){
return
this
.
guid
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setGuid
=
function
(
v
){
this
.
guid
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getSigner1
=
function
(){
return
this
.
signer1
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setSigner1
=
function
(
v
){
this
.
signer1
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getSigner2
=
function
(){
return
this
.
signer2
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setSigner2
=
function
(
v
){
this
.
signer2
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getEmail
=
function
(){
return
this
.
email
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setEmail
=
function
(
v
){
this
.
email
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getInstructions
=
function
(){
return
this
.
instructions
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setInstructions
=
function
(
v
){
this
.
instructions
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getShowDate
=
function
(){
return
this
.
showDate
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setShowDate
=
function
(
v
){
this
.
showDate
=
v
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_getValid
=
function
(){
return
this
.
valid
;
};
asc_CSigna
r
ureLine
.
prototype
.
asc_setValid
=
function
(
v
){
this
.
valid
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getId
=
function
(){
return
this
.
id
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setId
=
function
(
v
){
this
.
id
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getGuid
=
function
(){
return
this
.
guid
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setGuid
=
function
(
v
){
this
.
guid
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getSigner1
=
function
(){
return
this
.
signer1
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setSigner1
=
function
(
v
){
this
.
signer1
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getSigner2
=
function
(){
return
this
.
signer2
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setSigner2
=
function
(
v
){
this
.
signer2
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getEmail
=
function
(){
return
this
.
email
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setEmail
=
function
(
v
){
this
.
email
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getInstructions
=
function
(){
return
this
.
instructions
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setInstructions
=
function
(
v
){
this
.
instructions
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getShowDate
=
function
(){
return
this
.
showDate
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_setShowDate
=
function
(
v
){
this
.
showDate
=
v
;
};
asc_CSigna
t
ureLine
.
prototype
.
asc_getValid
=
function
(){
return
this
.
valid
;
};
asc_CSigna
t
ureLine
.
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_CSigna
rureLine
"
]
=
window
[
"
AscCommon
"
].
asc_CSignarureLine
=
asc_CSignar
ureLine
;
prot
=
asc_CSigna
r
ureLine
.
prototype
;
window
[
"
AscCommon
"
][
"
asc_CSigna
tureLine
"
]
=
window
[
"
AscCommon
"
].
asc_CSignatureLine
=
asc_CSignat
ureLine
;
prot
=
asc_CSigna
t
ureLine
.
prototype
;
prot
[
"
asc_getId
"
]
=
prot
.
asc_getId
;
prot
[
"
asc_setId
"
]
=
prot
.
asc_setId
;
prot
[
"
asc_getGuid
"
]
=
prot
.
asc_getGuid
;
...
...
word/api.js
View file @
1c90bc3b
...
...
@@ -3502,7 +3502,7 @@ background-repeat: no-repeat;\
};
// signatures
asc_docs_api
.
prototype
.
asc_AddSigna
r
ureLine2
=
function
(
_obj
)
asc_docs_api
.
prototype
.
asc_AddSigna
t
ureLine2
=
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_AddSigna
rureLine2
"
]
=
asc_docs_api
.
prototype
.
asc_AddSignar
ureLine2
;
asc_docs_api
.
prototype
[
"
asc_AddSigna
tureLine2
"
]
=
asc_docs_api
.
prototype
.
asc_AddSignat
ureLine2
;
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment