static fields are initilialized

This commit is contained in:
2021-04-06 16:26:57 +02:00
parent 2cbe3c4387
commit 5bfcf29431
13 changed files with 719 additions and 194 deletions

View File

@@ -216,7 +216,7 @@ function initializeMock(index){
function fillStaticFields(uuid, id, mediaType, body, httpStatus){
let link = createLink(uuid,id);
$('#messageLink').html('<a href="' + link + '" target="_blank">' + link + '</a>');
$('#messageLink').val(link);
$('#httpStatus').val(httpStatus);
$('#typeSelector').val(mediaType);
$('#bodyEditor').val(body);
@@ -272,6 +272,7 @@ function removeRow(row){
setDataModified();
}
//TODO: Change html for new html structure
function addRow(){
var table = $('#httpStatusValues');
var hkey = $('#headerKeyInput');
@@ -354,6 +355,7 @@ function selectMessage(id){
console.log("Selected message selected");
}
// TODO: Modify html for tiles
function generateMessageTileHtml(id, httpStatus, mediaType){
var innerHTML = '<div class="menuItem" id="item_' + id + '" onclick="callLoadMessage('+ id +')">' +
'<table><tr><td>Id: '+ id +'</td></tr>' +