static fields are initilialized
This commit is contained in:
@@ -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>' +
|
||||
|
||||
Reference in New Issue
Block a user