DmitrMakeev commited on
Commit
d3e13e3
·
verified ·
1 Parent(s): b21c53f

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. 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.url = props.url;
906
- window.grup = props.grup;
907
- window.red_url = props.red_url;
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:', { url, grup, red_url, pol_a, pol_b, new_w });
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': ['avp', 'grup', 'red_url', 'pol_a', 'pol_b', 'new_w'],
940
  traits: [
941
  {
942
  type: 'text',
943
- name: 'url',
944
- label: 'URL',
945
  changeProp: true
946
  },
947
  {
948
  type: 'text',
949
- name: 'grup',
950
- label: 'GRUP',
951
  changeProp: true
952
  },
953
  {
954
  type: 'text',
955
- name: 'red_url',
956
- label: 'RED_URL',
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
  {