Only list tables in DB test if API returns them (which it doesn't) (#8681)

* only list tables if we get an array of them back (which we probably never will)

* nixing old/busted table display
This commit is contained in:
Evan Rusackas 2019-11-27 11:43:49 -08:00 committed by Maxime Beauchemin
parent 16c0599470
commit e21f768a92
1 changed files with 0 additions and 9 deletions

View File

@ -57,15 +57,6 @@
contentType: "application/json; charset=utf-8"
}).done(function(data) {
alert("Seems OK!");
if ($('#tables').length == 0)
$('body div.container').append('<div id="tables"></div>');
div = $('#tables')
div.html('Tables:<br>');
$.each(data, function(i, d){
var id = 'tbl_' + d;
div.append('<span id="' + id + '" style="margin: 0px 10px 10px 0px;" class="btn btn-default">' + d + '</span>')
$('#' + id).click(function(){window.location = '/tablemodelview/add';})
});
}).fail(function(error) {
var respJSON = error.responseJSON;
var errorMsg = error.responseText;