Update js/rus/rus.js
Browse files- js/rus/rus.js +11 -11
js/rus/rus.js
CHANGED
@@ -902,14 +902,14 @@ editor.Components.addType('senler_form_v1-settings-block', {
|
|
902 |
defaults: {
|
903 |
content: '<div id="set_senler_1"></div>',
|
904 |
script: function(props) {
|
905 |
-
window.
|
906 |
-
window.
|
907 |
-
window.
|
908 |
window.pol_a = props.pol_a;
|
909 |
window.pol_b = props.pol_b;
|
910 |
window.new_w = props.new_w;
|
911 |
const initBlock = () => {
|
912 |
-
console.log('Empty block initialized with props:', {
|
913 |
};
|
914 |
const loadScript = (src, callback) => {
|
915 |
const script = document.createElement('script');
|
@@ -936,24 +936,24 @@ editor.Components.addType('senler_form_v1-settings-block', {
|
|
936 |
console.log('Custom script loaded!');
|
937 |
});
|
938 |
},
|
939 |
-
'script-props': ['
|
940 |
traits: [
|
941 |
{
|
942 |
type: 'text',
|
943 |
-
name: '
|
944 |
-
label: '
|
945 |
changeProp: true
|
946 |
},
|
947 |
{
|
948 |
type: 'text',
|
949 |
-
name: '
|
950 |
-
label: '
|
951 |
changeProp: true
|
952 |
},
|
953 |
{
|
954 |
type: 'text',
|
955 |
-
name: '
|
956 |
-
label: '
|
957 |
changeProp: true
|
958 |
},
|
959 |
{
|
|
|
902 |
defaults: {
|
903 |
content: '<div id="set_senler_1"></div>',
|
904 |
script: function(props) {
|
905 |
+
window.w_url = props.w_url;
|
906 |
+
window.vk_grup = props.vk_grup;
|
907 |
+
window.s_grup = props.s_grup;
|
908 |
window.pol_a = props.pol_a;
|
909 |
window.pol_b = props.pol_b;
|
910 |
window.new_w = props.new_w;
|
911 |
const initBlock = () => {
|
912 |
+
console.log('Empty block initialized with props:', { w_url, vk_grup, s_grup, pol_a, pol_b, new_w });
|
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', 'pol_a', 'pol_b', 'new_w'],
|
940 |
traits: [
|
941 |
{
|
942 |
type: 'text',
|
943 |
+
name: 'w_url',
|
944 |
+
label: 'W_URL',
|
945 |
changeProp: true
|
946 |
},
|
947 |
{
|
948 |
type: 'text',
|
949 |
+
name: 'vk_grup',
|
950 |
+
label: 'VK_GRUP',
|
951 |
changeProp: true
|
952 |
},
|
953 |
{
|
954 |
type: 'text',
|
955 |
+
name: 's_grup',
|
956 |
+
label: 'S_GRUP',
|
957 |
changeProp: true
|
958 |
},
|
959 |
{
|