Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
synergy-components
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
synergy-components
Commits
4fe64316
Commit
4fe64316
authored
Aug 12, 2026
by
Samir Sadyhov
🤔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix openDocument.js
parent
ca2c84df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
constructor/scripts/openDocument/openDocument.js
constructor/scripts/openDocument/openDocument.js
+23
-20
No files found.
constructor/scripts/openDocument/openDocument.js
View file @
4fe64316
...
@@ -975,8 +975,9 @@ class Document {
...
@@ -975,8 +975,9 @@ class Document {
},
false
);
},
false
);
}
}
if
(
AS
.
OPTIONS
.
currentUser
.
userid
==
user
.
id
)
{
if
(
parent_process
!==
'
registration
'
)
{
switch
(
parent_process
)
{
if
(
AS
.
OPTIONS
.
currentUser
.
userid
==
user
.
id
)
{
switch
(
parent_process
)
{
case
'
null
'
:
case
'
null
'
:
case
'
assignment-single
'
:
//Завершить
case
'
assignment-single
'
:
//Завершить
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
...
@@ -990,7 +991,7 @@ class Document {
...
@@ -990,7 +991,7 @@ class Document {
finishWork
(
this
.
_doc
);
finishWork
(
this
.
_doc
);
}
}
},
true
);
},
true
);
break
;
break
;
case
'
approval-single
'
:
//Утвердить
case
'
approval-single
'
:
//Утвердить
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Утвердить
"
),
'
arm_action_button7
'
,
()
=>
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Утвердить
"
),
'
arm_action_button7
'
,
()
=>
{
_WORK
.
finishProcess
(
workInfo
,
this
.
_doc
);
_WORK
.
finishProcess
(
workInfo
,
this
.
_doc
);
...
@@ -1007,26 +1008,28 @@ class Document {
...
@@ -1007,26 +1008,28 @@ class Document {
},
false
);
},
false
);
break
;
break
;
case
'
resolution-action-single
'
:
console
.
log
(
'
Резолюция? хммм....
'
);
break
;
// Резолюция
case
'
resolution-action-single
'
:
console
.
log
(
'
Резолюция? хммм....
'
);
break
;
// Резолюция
}
}
}
else
if
(
AS
.
OPTIONS
.
currentUser
.
userid
==
author
.
id
)
{
}
else
if
(
AS
.
OPTIONS
.
currentUser
.
userid
==
author
.
id
)
{
if
(
completionForm
&&
completionForm
.
hasOwnProperty
(
'
is_result_free
'
)
&&
!
completionForm
.
is_result_free
)
{
if
(
completionForm
&&
completionForm
.
hasOwnProperty
(
'
is_result_free
'
)
&&
!
completionForm
.
is_result_free
)
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
_WORK
.
acceptWork
(
this
.
_doc
);
_WORK
.
acceptWork
(
this
.
_doc
);
},
true
);
},
true
);
}
else
{
}
else
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
createButton
(
this
.
_doc
,
i18n
.
tr
(
"
Завершить
"
),
'
arm_action_button3
'
,
()
=>
{
const
{
dataUUID
,
mainDataUUID
}
=
this
.
_doc
;
const
{
dataUUID
,
mainDataUUID
}
=
this
.
_doc
;
if
(
dataUUID
&&
dataUUID
!=
mainDataUUID
)
{
if
(
dataUUID
&&
dataUUID
!=
mainDataUUID
)
{
this
.
_doc
.
formPlayer
.
showFormData
(
null
,
null
,
mainDataUUID
);
this
.
_doc
.
formPlayer
.
showFormData
(
null
,
null
,
mainDataUUID
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
finishWork
(
this
.
_doc
);
},
500
);
}
else
{
finishWork
(
this
.
_doc
);
finishWork
(
this
.
_doc
);
},
500
);
}
}
else
{
},
true
);
finishWork
(
this
.
_doc
);
}
}
},
true
);
}
}
}
}
}
}
resizePanels
(
this
.
_doc
);
resizePanels
(
this
.
_doc
);
...
...
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