Kaynağa Gözat

Update vendors

Espinoza Guillermo 6 yıl önce
ebeveyn
işleme
5727d551a3

+ 2 - 2
composer.lock

@@ -1457,7 +1457,7 @@
             "source": {
                 "type": "git",
                 "url": "ssh://git@200.50.168.30:222/VendorSoftwareFlowdat3/BaseAdmin.git",
-                "reference": "ecd038fbd7c5ea4f686483941902bd15268e8394"
+                "reference": "35f959bb88cbb5700c5cd258c32178c4b432c0ee"
             },
             "type": "library",
             "autoload": {
@@ -1472,7 +1472,7 @@
                 "bootstrap",
                 "sonata"
             ],
-            "time": "2018-07-19T18:13:02+00:00"
+            "time": "2018-07-20T16:02:59+00:00"
         },
         {
             "name": "ik/device-bundle",

+ 20 - 12
src/KeaBundle/Resources/views/Packet/list.html.twig

@@ -29,6 +29,8 @@
           }
 
           $('#tbody').prepend($("<tr>").append($('<td class="sonata-ba-list-field sonata-ba-list-field-text td-bordered">').text(m.body)));
+          
+          filter();
       }, {
         durable: false,
         "auto-delete": false,
@@ -45,23 +47,27 @@
     
     {# FILTRO #}
     
+    function filter()
+    {
+        var $filter = $('#filter').val();
+        
+        if ($filter.length >= 3) {
+            $('#tbody td:not(:contains("'+$filter+'"))').hide();
+        } else {
+            $('#tbody td').show();
+        }
+        
+        return false;
+    }
+    
     $(document).on('ready', function() {
-        $('#filter').on('input', function() {
-            var $filter = $('#filter').val();
-            
-            if ($filter.length >= 3) {
-                $('#tbody td:not(:contains("'+$filter+'"))').hide();
-            } else {
-                $('#tbody td').show();
-            }
-            
-            return false;
-        });
+        $('#filter').on('input', filter);
         
-        $('#first form').submit(function(e) {
+        $('#first form').on('submit', function(e) {
             e.preventDefault();
             
             return false;
+            
         });
     });
 </script>
@@ -106,6 +112,7 @@
         <div class="box box-primary">
             <div id="first" class="sonata-filter-form form-horizontal" style="width: 100%; overflow: auto; padding: 10px;">
                 <div class="box-header">
+                    <i class="fa fa-filter" aria-hidden="true"></i>
                     <h4 class="box-title">
                         {{ 'Filter'|trans({}, 'KeaBundle') }}
                     </h4>
@@ -123,6 +130,7 @@
         <div class="box box-primary" style="margin-bottom: 100px;">
             <div id="second" class="box-body table-responsive no-padding" style="width: 100%; overflow: auto; padding: 10px;">
                 <div class="box-header">
+                    <i class="fa fa-list" aria-hidden="true"></i>
                     <h4 class="box-title">
                         {{ 'Packets'|trans({}, 'KeaBundle') }}
                     </h4>