Update js/rus/rus.js
Browse files- js/rus/rus.js +9 -15
js/rus/rus.js
CHANGED
@@ -905,11 +905,11 @@ editor.Components.addType('senler_form_v1-settings-block', {
|
|
905 |
window.w_url = props.w_url;
|
906 |
window.vk_grup = props.vk_grup;
|
907 |
window.s_grup = props.s_grup;
|
908 |
-
window.
|
909 |
-
window.
|
910 |
-
|
911 |
const initBlock = () => {
|
912 |
-
console.log('Empty block initialized with props:', { w_url, vk_grup, s_grup,
|
913 |
};
|
914 |
const loadScript = (src, callback) => {
|
915 |
const script = document.createElement('script');
|
@@ -936,7 +936,7 @@ editor.Components.addType('senler_form_v1-settings-block', {
|
|
936 |
console.log('Custom script loaded!');
|
937 |
});
|
938 |
},
|
939 |
-
'script-props': ['w_url', 'vk_grup', 's_grup', '
|
940 |
traits: [
|
941 |
{
|
942 |
type: 'text',
|
@@ -958,20 +958,14 @@ editor.Components.addType('senler_form_v1-settings-block', {
|
|
958 |
},
|
959 |
{
|
960 |
type: 'text',
|
961 |
-
name: '
|
962 |
-
label: '
|
963 |
changeProp: true
|
964 |
},
|
965 |
{
|
966 |
type: 'text',
|
967 |
-
name: '
|
968 |
-
label: '
|
969 |
-
changeProp: true
|
970 |
-
},
|
971 |
-
{
|
972 |
-
type: 'checkbox', // Изменено на checkbox
|
973 |
-
name: 'new_w',
|
974 |
-
label: 'NEW_W', // Обновлен лейбл
|
975 |
changeProp: true
|
976 |
}
|
977 |
]
|
|
|
905 |
window.w_url = props.w_url;
|
906 |
window.vk_grup = props.vk_grup;
|
907 |
window.s_grup = props.s_grup;
|
908 |
+
window.on_url = props.on_url;
|
909 |
+
window.off_url = props.off_url;
|
910 |
+
|
911 |
const initBlock = () => {
|
912 |
+
console.log('Empty block initialized with props:', { w_url, vk_grup, s_grup, on_url, off_url });
|
913 |
};
|
914 |
const loadScript = (src, callback) => {
|
915 |
const script = document.createElement('script');
|
|
|
936 |
console.log('Custom script loaded!');
|
937 |
});
|
938 |
},
|
939 |
+
'script-props': ['w_url', 'vk_grup', 's_grup', 'on_url', 'off_url'],
|
940 |
traits: [
|
941 |
{
|
942 |
type: 'text',
|
|
|
958 |
},
|
959 |
{
|
960 |
type: 'text',
|
961 |
+
name: 'on_url',
|
962 |
+
label: 'ON_URL',
|
963 |
changeProp: true
|
964 |
},
|
965 |
{
|
966 |
type: 'text',
|
967 |
+
name: 'off_url',
|
968 |
+
label: 'OFF_URL',
|
|
|
|
|
|
|
|
|
|
|
|
|
969 |
changeProp: true
|
970 |
}
|
971 |
]
|