Update js/rus/rus.js
Browse files- js/rus/rus.js +10 -3
js/rus/rus.js
CHANGED
@@ -338,14 +338,15 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
338 |
content: '<div id="set_kol_f_v1"></div>',
|
339 |
script: function(props) {
|
340 |
window.idSpun = props.idSpun;
|
341 |
-
window.sector = props.sector;
|
|
|
342 |
window.avp = props.avp;
|
343 |
window.grup = props.grup;
|
344 |
window.red_url = props.red_url;
|
345 |
window.new_w = props.new_w;
|
346 |
window.hook = props.hook;
|
347 |
const initBlock = () => {
|
348 |
-
console.log('Empty block initialized with props:', { avp, grup, red_url, new_w, hook });
|
349 |
};
|
350 |
const loadScript = (src, callback) => {
|
351 |
const script = document.createElement('script');
|
@@ -372,7 +373,7 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
372 |
console.log('Custom script loaded!');
|
373 |
});
|
374 |
},
|
375 |
-
'script-props': ['idSpun', 'sectors', 'avp', 'grup', 'red_url', 'pol_a', 'pol_b', 'new_w'],
|
376 |
traits: [
|
377 |
{
|
378 |
type: 'text',
|
@@ -386,6 +387,12 @@ editor.Components.addType('avp_kol_f_v1-settings-block', {
|
|
386 |
label: 'SECTORS',
|
387 |
changeProp: true
|
388 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
389 |
{
|
390 |
type: 'text',
|
391 |
name: 'avp',
|
|
|
338 |
content: '<div id="set_kol_f_v1"></div>',
|
339 |
script: function(props) {
|
340 |
window.idSpun = props.idSpun;
|
341 |
+
window.sector = props.sector;
|
342 |
+
window.delay = props.delay;
|
343 |
window.avp = props.avp;
|
344 |
window.grup = props.grup;
|
345 |
window.red_url = props.red_url;
|
346 |
window.new_w = props.new_w;
|
347 |
window.hook = props.hook;
|
348 |
const initBlock = () => {
|
349 |
+
console.log('Empty block initialized with props:', { idSpun, sectors, delay, avp, grup, red_url, new_w, hook });
|
350 |
};
|
351 |
const loadScript = (src, callback) => {
|
352 |
const script = document.createElement('script');
|
|
|
373 |
console.log('Custom script loaded!');
|
374 |
});
|
375 |
},
|
376 |
+
'script-props': ['idSpun', 'sectors', 'delay', 'avp', 'grup', 'red_url', 'pol_a', 'pol_b', 'new_w'],
|
377 |
traits: [
|
378 |
{
|
379 |
type: 'text',
|
|
|
387 |
label: 'SECTORS',
|
388 |
changeProp: true
|
389 |
},
|
390 |
+
{
|
391 |
+
type: 'text',
|
392 |
+
name: 'delay',
|
393 |
+
label: 'DELAY',
|
394 |
+
changeProp: true
|
395 |
+
}
|
396 |
{
|
397 |
type: 'text',
|
398 |
name: 'avp',
|