diff options
author | Javier Hernandez <jhernandez@soleta.eu> | 2023-12-11 11:40:12 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-12-11 11:43:42 +0100 |
commit | cc5c0105dbf11bfffd6f439181326a841bbeb27d (patch) | |
tree | 8a4d8c1d9a29f7b4525572642a897b670628afa8 /ogcp/static/AdminLTE/dist/img/user8-128x128.jpg | |
parent | ddfaae0ef6b38195f3330431101e8fed9e4a50f5 (diff) |
ogcp.js: Fix bug when adding a new partition
Fix a bug that made the 'add a new partition' button unusable if all
partitions (rows) were deleted.
The reason for this bug was that the AddPartition() function would add a
new partition by cloning an already present html row element. This would
fail if no more rows were present in the table.
The solution implemented checks, previous to delete a partition, if it
is the last partition. If it is, then, instead of removing the whole
row, it just empties it.
Html button element needs to contain 'type="button"' attribute for this to
work. Otherwise, default action for the button is submit and it would
redirect after clicking.
Diffstat (limited to 'ogcp/static/AdminLTE/dist/img/user8-128x128.jpg')
0 files changed, 0 insertions, 0 deletions