]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
чистка кода origin/feature_fomichev_erp_32_api_integration_save_fix
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 12 Sep 2024 11:54:12 +0000 (14:54 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Thu, 12 Sep 2024 11:54:12 +0000 (14:54 +0300)
erp24/views/api/integrations_index.php

index 5c9afa6c0a9ef7c6502c8d4968c597014a04aec1..4d4af16460091ba04a7167d44dc8225819975007 100644 (file)
@@ -105,22 +105,7 @@ $this->registerJs(<<<JS
     });
 
    
-   /* $('.poisk-item').change(function() {
-        var id = $(this).attr('data-id');
-        get_select_search(id);
-
-        // Отображение кнопок после выбора значения
-        var guidInput = $(".guid_input[data-id=" + id + "]");
-        showActionButtons(guidInput);
-    });*/
-
-    
-    /*$('.poisk-item').click(function() {
-        var id = $(this).attr('data-id');
-        if ($(this).val() !== '' && $(this).val() !== ' ') {
-            get_select_search(id);
-        }
-    });*/
+   
 
     // Добавляем прослушиватель события на все select'ы с id, начинающимся на "w"
     $('select[id^="w"]').on('change', function() {
@@ -141,17 +126,7 @@ $this->registerJs(<<<JS
             showActionButtons(relatedInput);
         }
     });
-    // поиск реализован через select2
-    /*function get_select_search(id) {
-        $.ajax({
-            url: '/api/poisk-item/',
-            method: 'POST',
-            data: '&id=' + id + '&search=' + $('#std_' + id).val() + '&tip=" . $entity . "',
-            success: function(data) {
-                $('#std_' + id).after('<div style="position:absolute;">' + data + '</div>');
-            }
-        });
-    }*/
+    
 
 JS);