Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17146 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17146 Rev 17318
Línea 97... Línea 97...
97
                        $('button.btn-add').removeAttr('disabled');
97
                        $('button.btn-add').removeAttr('disabled');
98
                    } else {
98
                    } else {
99
                        $('button.btn-add').attr('disabled', 'disabled');
99
                        $('button.btn-add').attr('disabled', 'disabled');
100
                    }
100
                    }
Línea 101... Línea -...
101
 
-
 
102
                    if (response.data.capsules) {
-
 
103
                        var \$select = $('#form-filter #capsule_uuid');
-
 
104
                        \$select.empty();
-
 
105
                        \$select.append('<option value="">LABEL_SELECT</option>');
-
 
106
                        $.each(response.data.capsules, function (index, value) {
-
 
107
                            \$select.append(
-
 
108
                                '<option value="' + value.uuid + '">' + value.name + '</option>'
-
 
109
                            );
-
 
110
                        });
-
 
111
 
-
 
112
                        // Si hay una cápsula seleccionada en la URL, seleccionarla
-
 
113
                        var urlParams = new URLSearchParams(window.location.search);
-
 
114
                        var selectedCapsule = urlParams.get('capsule_uuid');
-
 
115
                        if (selectedCapsule) {
-
 
116
                            \$select.val(selectedCapsule);
-
 
117
                        }
-
 
118
                    }
-
 
119
 
101
 
120
                    json.recordsTotal = response.data.total;
102
                    json.recordsTotal = response.data.total;
121
                    json.recordsFiltered = response.data.total;
103
                    json.recordsFiltered = response.data.total;
Línea 122... Línea 104...
122
                    json.data = response.data.items;
104
                    json.data = response.data.items;