static fields are initilialized
This commit is contained in:
		| @@ -226,7 +226,7 @@ | ||||
|     display: flex; | ||||
|     flex-direction: row; | ||||
|     text-align: center; | ||||
|     border-bottom: 1px solid rgba(185, 185, 185, 0.3); | ||||
|     border-bottom: 1px solid rgba(185, 185, 185, 0.5); | ||||
| } | ||||
|  | ||||
| .tabitem { | ||||
|   | ||||
| @@ -3,11 +3,12 @@ | ||||
| <head> | ||||
|     <title>R11 MockedServices</title> | ||||
|     <meta charset="utf-8"> | ||||
|     <link rel="stylesheet" href="../Dependency/fontello-plus/css/fontello.css" type="text/css"/> | ||||
|     <link rel="stylesheet" href="../css/modal.css" type="text/css"> | ||||
|     <link rel="stylesheet" href="../css/commons/r11form.css" type="text/css"> | ||||
|     <link rel="preconnect" href="https://fonts.gstatic.com"> | ||||
|     <link href="https://fonts.googleapis.com/css2?family=Acme&family=Josefin+Slab:wght@500&display=swap" rel="stylesheet"> | ||||
|     <!-- TODO: Remove dependency --> | ||||
|     <!-- <link rel="stylesheet" href="/Dependency/fontello-plus/css/fontello.css" type="text/css"/> --> | ||||
|     <link rel="stylesheet" href="/css/modal.css" type="text/css"> | ||||
|     <link rel="stylesheet" href="/css/commons/r11form.css" type="text/css"> | ||||
|     <!-- <link rel="preconnect" href="https://fonts.gstatic.com"> --> | ||||
|     <!-- <link href="https://fonts.googleapis.com/css2?family=Acme&family=Josefin+Slab:wght@500&display=swap" rel="stylesheet"> --> | ||||
|     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||||
| </head> | ||||
| <body> | ||||
| @@ -20,7 +21,7 @@ | ||||
|                 <div> | ||||
|                     <!-- h2 --> | ||||
|                     <div id="basicItemData" class="hiddable active"><h2>Your Message</h2></div> | ||||
|                     <div id="advancedItemData" class="hiddable"><h2>Messaged id: <span>1</span></h2></div> | ||||
|                     <div id="advancedItemData" class="hiddable"><h2>Messaged id: <span id="mockedMessageId">1</span></h2></div> | ||||
|                     <!-- save --> | ||||
|                     <div> | ||||
|                         <!-- <button class="action-button active large-button small-vertical-margin">Save</button> --> | ||||
|   | ||||
| @@ -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