Commit 83c634ac authored by Sergey Antonovich's avatar Sergey Antonovich 🇯🇵

Update jSynergy.js HOT FIX (1.0.10)

parent 0bd2f3bb
......@@ -5,9 +5,9 @@
* Docs: `http://gitlab.lan.arta.kz/community/synergy-components/blob/master/interpreter/jSynergyDocs.md`
*
* Belongs to `TOO Arta Software`
* Last modified: 08.03.2022
* Last modified: 10.07.2024
* Contributes users: none
* Version: 1.0.9
* Version: 1.0.10
*
* By yandexphp
*/
......@@ -926,10 +926,12 @@ function __classSynergy() {
*/
getPropsByComp: function (componentId, tableId) {
if (
tableId && componentId && __CLIENT__.isExistsComp(tableId) ||
componentId && __CLIENT__.isExistsComp(componentId)
!__FORM_EXT__ ||
(!tableId && !componentId) ||
(componentId && !tableId && !__CLIENT__.isExistsComp(componentId)) ||
(componentId && tableId && !__CLIENT__.isExistsComp(tableId))
) {
return __CLIENT__;
return null;
}
let data = (__FORM_EXT__.properties || []);
......@@ -1090,13 +1092,29 @@ function __classSynergy() {
* @param {String} tableID Идентификатор (id) таблицы
*/
clearTable: function (tableID) {
if (tableID) {
if (tableID && __CLIENT__.isExistsComp(tableID)) {
let isCleared = false;
__DATA__.forEach(function (item) {
if (item.id === tableID) {
isCleared = true;
item.data = [];
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__;
......@@ -1500,9 +1518,9 @@ function __classSynergy() {
this.about = {
name: 'jSynergy',
type: 'Library',
version: '1.0.9 Release',
version: '1.0.10 Release',
created: '17.10.2018',
update: '08.03.2022',
update: '10.07.2024',
company: 'Arta Software',
platform_versions: {
'3.12': '[Not support]',
......@@ -1510,6 +1528,7 @@ function __classSynergy() {
'3.15': '[Not support] - not verified',
'4.0': true,
'4.1': true,
'5.0': true
},
git: 'https://gitlab.lan.arta.kz/community/synergy-components/-/blob/master/interpreter/jSynergyDocs.md',
contributes: {},
......
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