From ff240d8d1d4c076c9dcfe16a93e521d169af0cc5 Mon Sep 17 00:00:00 2001 From: miferreiro Date: Sat, 2 Mar 2019 17:32:13 +0100 Subject: [PATCH] Improves a person's pet table It has been introduced that when the view of a person's pets is initialized, the table is put on a larger size because the columns of the person's first and last names are removed. --- src/main/webapp/js/view/pets.js | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/js/view/pets.js b/src/main/webapp/js/view/pets.js index 34412cb..5a02553 100644 --- a/src/main/webapp/js/view/pets.js +++ b/src/main/webapp/js/view/pets.js @@ -86,6 +86,10 @@ var PetsView = (function() { $('#person-name-th').remove(); $('#person-surname-th').remove(); + $('#pet-name-th').removeClass("col-sm-2"); + $('#pet-name-th').addClass("col-sm-4"); + $('#pet-specie-th').removeClass("col-sm-2"); + $('#pet-specie-th').addClass("col-sm-4"); dao.listPeoplePets(id, function(pets) { @@ -223,11 +227,11 @@ var PetsView = (function() { '\ \ \ - \ - \ + \ + \ \ \ - \ + \ \ \ \ @@ -270,7 +274,7 @@ var PetsView = (function() { \ \ \ - \ @@ -280,10 +284,10 @@ var PetsView = (function() { var createPetRowPetsPerson = function(pet) { return '\ - \ - \ + \ + \ \ - \ -- 2.18.1
NombreEspecieNombreEspecieNombre PropietarioApellido Propietario  
' + person.name + '' + person.surname + '\ + \ Editar\ Eliminar\
' + pet.name + '' + pet.specie + '' + pet.name + '' + pet.specie + '\ + \ Editar\ Eliminar\