Commit 0542a9dfd4f1c26bb6ad81693d5b26eb4efb49ae
1 parent
a410b1873c
Exists in
master
La fila es seleccionable
Showing
1 changed file
with
6 additions
and
5 deletions
Show diff stats
src/views/modal-busqueda-productos.html
... | ... | @@ -25,20 +25,21 @@ |
25 | 25 | </tr> |
26 | 26 | </thead> |
27 | 27 | <tbody> |
28 | - <tr ng-repeat="(key,producto) in currentPageProductos"> | |
28 | + <tr class="selectable" | |
29 | + ng-repeat="(key,producto) in currentPageProductos" | |
30 | + ng-click="select(producto)"> | |
29 | 31 | <td ng-bind="producto.sector"></td> |
30 | 32 | <td ng-bind="producto.codigo"></td> |
31 | 33 | <td ng-bind="producto.descripcion"></td> |
32 | 34 | <td ng-bind="producto.precio | currency"></td> |
33 | 35 | <td> |
34 | 36 | <button |
35 | - type="button" | |
37 | + type="button" | |
36 | 38 | class="btn p-2 float-right" |
37 | - ng-class="{ | |
38 | - 'btn-secondary': selectedProducto != key, | |
39 | + ng-class="{ | |
40 | + 'btn-secondary': selectedProducto != key, | |
39 | 41 | 'btn-primary': selectedProducto == key |
40 | 42 | }" |
41 | - ng-click="select(producto)" | |
42 | 43 | foca-focus="selectedProducto == {{key}}" |
43 | 44 | ng-keydown="itemProducto($event.keyCode)" |
44 | 45 | > |