Browse Source

Fix MAF move modal long order names

Alexander Musikhin 4 ngày trước cách đây
mục cha
commit
bf7b5ce896
1 tập tin đã thay đổi với 17 bổ sung1 xóa
  1. 17 1
      resources/views/orders/show.blade.php

+ 17 - 1
resources/views/orders/show.blade.php

@@ -425,6 +425,18 @@
             </div>
         </div>
 
+        <style>
+            #select_order {
+                max-width: 100%;
+                overflow-x: auto;
+            }
+
+            #select_order option {
+                white-space: normal;
+                word-break: break-word;
+            }
+        </style>
+
         <!-- Модальное окно переноса -->
         <div class="modal fade" id="moveModal" tabindex="-1" aria-labelledby="moveModalLabel" aria-hidden="true">
             <div class="modal-dialog modal-fullscreen-sm-down modal-lg">
@@ -463,7 +475,11 @@
                     function (data) {
                         $('#select_order').children().remove()
                         $.each(data, function (id, name) {
-                            $('#select_order').append('<option value=\'' + id + '\'>' + name + '</option>');
+                            $('#select_order').append($('<option>', {
+                                value: id,
+                                text: name,
+                                title: name,
+                            }));
                         });
                     }
                 );