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
83c634ac
Commit
83c634ac
authored
Jul 10, 2024
by
Sergey Antonovich
🇯🇵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update jSynergy.js HOT FIX (1.0.10)
parent
0bd2f3bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
8 deletions
+27
-8
interpreter/jSynergy.js
interpreter/jSynergy.js
+27
-8
No files found.
interpreter/jSynergy.js
View file @
83c634ac
...
@@ -5,9 +5,9 @@
...
@@ -5,9 +5,9 @@
* Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md`
* Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md`
*
*
* Belongs to `TOO Arta Software`
* Belongs to `TOO Arta Software`
* Last modified:
08.03.2022
* Last modified:
10.07.2024
* Contributes users: none
* Contributes users: none
* Version: 1.0.
9
* Version: 1.0.
10
*
*
* By yandexphp
* By yandexphp
*/
*/
...
@@ -926,10 +926,12 @@ function __classSynergy() {
...
@@ -926,10 +926,12 @@ function __classSynergy() {
*/
*/
getPropsByComp
:
function
(
componentId
,
tableId
)
{
getPropsByComp
:
function
(
componentId
,
tableId
)
{
if
(
if
(
tableId
&&
componentId
&&
__CLIENT__
.
isExistsComp
(
tableId
)
||
!
__FORM_EXT__
||
componentId
&&
__CLIENT__
.
isExistsComp
(
componentId
)
(
!
tableId
&&
!
componentId
)
||
(
componentId
&&
!
tableId
&&
!
__CLIENT__
.
isExistsComp
(
componentId
))
||
(
componentId
&&
tableId
&&
!
__CLIENT__
.
isExistsComp
(
tableId
))
)
{
)
{
return
__CLIENT__
;
return
null
;
}
}
let
data
=
(
__FORM_EXT__
.
properties
||
[]);
let
data
=
(
__FORM_EXT__
.
properties
||
[]);
...
@@ -1090,13 +1092,29 @@ function __classSynergy() {
...
@@ -1090,13 +1092,29 @@ function __classSynergy() {
* @param {String} tableID Идентификатор (id) таблицы
* @param {String} tableID Идентификатор (id) таблицы
*/
*/
clearTable
:
function
(
tableID
)
{
clearTable
:
function
(
tableID
)
{
if
(
tableID
)
{
if
(
tableID
&&
__CLIENT__
.
isExistsComp
(
tableID
))
{
let
isCleared
=
false
;
__DATA__
.
forEach
(
function
(
item
)
{
__DATA__
.
forEach
(
function
(
item
)
{
if
(
item
.
id
===
tableID
)
{
if
(
item
.
id
===
tableID
)
{
isCleared
=
true
;
item
.
data
=
[];
item
.
data
=
[];
return
;
return
;
}
}
});
});
if
(
!
isCleared
)
{
let
table
=
__CLIENT__
.
getPropsByComp
(
tableID
)
if
(
table
&&
table
.
config
&&
table
.
config
.
appendRows
)
{
isCleared
=
true
;
__CLIENT__
.
addAsfData
({
id
:
table
.
id
,
type
:
'
appendable_table
'
,
data
:
[]
});
}
}
}
}
return
__CLIENT__
;
return
__CLIENT__
;
...
@@ -1500,9 +1518,9 @@ function __classSynergy() {
...
@@ -1500,9 +1518,9 @@ function __classSynergy() {
this
.
about
=
{
this
.
about
=
{
name
:
'
jSynergy
'
,
name
:
'
jSynergy
'
,
type
:
'
Library
'
,
type
:
'
Library
'
,
version
:
'
1.0.
9
Release
'
,
version
:
'
1.0.
10
Release
'
,
created
:
'
17.10.2018
'
,
created
:
'
17.10.2018
'
,
update
:
'
08.03.2022
'
,
update
:
'
10.07.2024
'
,
company
:
'
Arta Software
'
,
company
:
'
Arta Software
'
,
platform_versions
:
{
platform_versions
:
{
'
3.12
'
:
'
[Not support]
'
,
'
3.12
'
:
'
[Not support]
'
,
...
@@ -1510,6 +1528,7 @@ function __classSynergy() {
...
@@ -1510,6 +1528,7 @@ function __classSynergy() {
'
3.15
'
:
'
[Not support] - not verified
'
,
'
3.15
'
:
'
[Not support] - not verified
'
,
'
4.0
'
:
true
,
'
4.0
'
:
true
,
'
4.1
'
:
true
,
'
4.1
'
:
true
,
'
5.0
'
:
true
},
},
git
:
'
https://gitlab.lan.arta.kz/community/synergy-components/-/blob/master/interpreter/jSynergyDocs.md
'
,
git
:
'
https://gitlab.lan.arta.kz/community/synergy-components/-/blob/master/interpreter/jSynergyDocs.md
'
,
contributes
:
{},
contributes
:
{},
...
...
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