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

Update js/rus/rus.js

Browse files
Files changed (1) hide show
  1. 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.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,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', 'pol_a', 'pol_b', 'new_w'],
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: 'pol_a',
962
- label: 'POL_A',
963
  changeProp: true
964
  },
965
  {
966
  type: 'text',
967
- name: 'pol_b',
968
- label: 'POL_B',
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
  ]