Skip to content

Commit e7aea6b

Browse files
committed
Removed old EiInfo button and popup window. Solved scrolling issue when page becomes bigger.
1 parent 94edac4 commit e7aea6b

File tree

3 files changed

+2
-36
lines changed

3 files changed

+2
-36
lines changed

src/main/resources/static/js/subscription.js

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,7 @@ jQuery(document).ready(function() {
7878
});
7979

8080
}
81-
function getInstanceInfo() {
82-
var text = document.getElementById('info_text');
83-
$.ajax({
84-
url: frontendServiceUrl + "/information",
85-
contentType : 'application/json;charset=UTF-8',
86-
type: 'GET',
87-
error : function (XMLHttpRequest, textStatus, errorThrown) {
88-
document.getElementById('info_text').innerHTML = errorThrown;
89-
},
90-
success : function (data, textStatus, xhr) {
91-
92-
},
93-
complete: function (XMLHttpRequest, textStatus) {
94-
var s = JSON.parse(XMLHttpRequest.responseText);
95-
text.innerHTML = JSON.stringify(s,undefined, 2);
96-
}
97-
});
98-
}
81+
9982
// Check if EI Backend Server is online every X seconds
10083
window.setInterval(function(){
10184
checkEiBackendServer();
@@ -110,22 +93,6 @@ jQuery(document).ready(function() {
11093
checkEiBackendServer();
11194
});
11295

113-
$('.container').on( 'click', 'button.btnEIInstanceInfo', function () {
114-
if(checkEiBackend){
115-
getInstanceInfo();
116-
var modal = document.getElementById('modal_info');
117-
var span = document.getElementsByClassName("close_instance")[0];
118-
modal.style.display = "block";
119-
span.onclick = function() {
120-
modal.style.display = "none";
121-
}
122-
window.onclick = function(event) {
123-
if (event.target == modal) {
124-
modal.style.display = "none";
125-
}}}else{
126-
alert("EI BACKEND OFFLINE");
127-
}
128-
});
12996
// END OF EI Backend Server check #########################################
13097

13198

src/main/resources/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ <h6 class="dropdown-header">New Alerts:</h6>
175175
</nav>
176176
<div class="content-wrapper">
177177

178-
<iframe id="mainFrame" scrolling="yes" style="position:fixed; top:56px; left:250px; bottom:0px; right:0px; width:87%; height:90%; border:none;"></iframe>
178+
<iframe id="mainFrame" scrolling="yes" style="position:fixed; top:56px; left:250px; bottom:0px; right:0px; width:87%; height:94%; border:none;"></iframe>
179179

180180

181181
<!-- /.container-fluid-->

src/main/resources/templates/subscription.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
<div class="container pull-left">
4444
<h1 style="font-size:20pt">Eiffel Intelligence Subscription Handling (<span th:text="${frontendServiceUrl}"></span>)
4545
<button data-toggle="tooltip" title="EI connection status check is refreshed continuesly. Click button to force check status." type="button" id="btnEIConnection" class="btn btnEIConnectionStatus"><i class="glyphicon"></i>EI Backend Status</button>
46-
<button data-toggle="tooltip" title="Eiffel intelligence instance information" type="button" id="btnInfo" class="btn btnEIInstanceInfo"><i class="glyphicon"></i> EI Backend Instance Info</button>
4746
</h1>
4847

4948
<h3>Subscription Data</h3>

0 commit comments

Comments
 (0)