Update js/rus/rus.js
Browse files- js/rus/rus.js +17 -3
js/rus/rus.js
CHANGED
@@ -341,7 +341,9 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
341 |
defaults: {
|
342 |
content: '<div id="set_kol_f_v1"></div>',
|
343 |
script: function(props) {
|
344 |
-
window.idSpun = props.idSpun;
|
|
|
|
|
345 |
window.sector = JSON.parse(props.sector); // Парсим JSON строку сектора
|
346 |
window.delay = parseInt(props.delay, 10); // Парсим числовое значение delay
|
347 |
window.avp = props.avp;
|
@@ -350,7 +352,7 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
350 |
window.new_w = props.new_w;
|
351 |
window.hook = props.hook;
|
352 |
const initBlock = () => {
|
353 |
-
console.log('Empty block initialized with props:', { idSpun, sector, delay, avp, grup, red_url, new_w, hook });
|
354 |
console.log('Parsed sector:', sector); // Выводим сектор в консоль
|
355 |
};
|
356 |
const loadScript = (src, callback) => {
|
@@ -378,7 +380,7 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
378 |
console.log('Custom script loaded!');
|
379 |
});
|
380 |
},
|
381 |
-
'script-props': ['idSpun', 'sector', 'delay', 'avp', 'grup', 'red_url', 'pol_a', 'pol_b', 'new_w'],
|
382 |
traits: [
|
383 |
{
|
384 |
type: 'text',
|
@@ -386,6 +388,18 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
386 |
label: 'IDSPUN',
|
387 |
changeProp: true
|
388 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
{
|
390 |
type: 'text',
|
391 |
name: 'sector',
|
|
|
341 |
defaults: {
|
342 |
content: '<div id="set_kol_f_v1"></div>',
|
343 |
script: function(props) {
|
344 |
+
window.idSpun = props.idSpun;
|
345 |
+
window.but_text = props.but_text;
|
346 |
+
window.color_but = props.color_but;
|
347 |
window.sector = JSON.parse(props.sector); // Парсим JSON строку сектора
|
348 |
window.delay = parseInt(props.delay, 10); // Парсим числовое значение delay
|
349 |
window.avp = props.avp;
|
|
|
352 |
window.new_w = props.new_w;
|
353 |
window.hook = props.hook;
|
354 |
const initBlock = () => {
|
355 |
+
console.log('Empty block initialized with props:', { idSpun, but_text, color_but, sector, delay, avp, grup, red_url, new_w, hook });
|
356 |
console.log('Parsed sector:', sector); // Выводим сектор в консоль
|
357 |
};
|
358 |
const loadScript = (src, callback) => {
|
|
|
380 |
console.log('Custom script loaded!');
|
381 |
});
|
382 |
},
|
383 |
+
'script-props': ['idSpun', 'but_text', 'color_but', 'sector', 'delay', 'avp', 'grup', 'red_url', 'pol_a', 'pol_b', 'new_w'],
|
384 |
traits: [
|
385 |
{
|
386 |
type: 'text',
|
|
|
388 |
label: 'IDSPUN',
|
389 |
changeProp: true
|
390 |
},
|
391 |
+
{
|
392 |
+
type: 'text',
|
393 |
+
name: 'but_text',
|
394 |
+
label: 'BUT_TEXT',
|
395 |
+
changeProp: true
|
396 |
+
},
|
397 |
+
{
|
398 |
+
type: 'text',
|
399 |
+
name: 'color_but',
|
400 |
+
label: 'COLOR_BUT',
|
401 |
+
changeProp: true
|
402 |
+
},
|
403 |
{
|
404 |
type: 'text',
|
405 |
name: 'sector',
|