remove estimated ram use stuff as it is no longer possible

This commit is contained in:
Isaac Connor 2021-03-26 14:31:18 -04:00
parent badb1c6131
commit 2e675a338b
1 changed files with 0 additions and 13 deletions

View File

@ -48,7 +48,6 @@ function updateMonitorDimensions(element) {
form.elements['newMonitor[Height]'].value = dimensions[1]; form.elements['newMonitor[Height]'].value = dimensions[1];
} }
} }
update_estimated_ram_use();
return false; return false;
} }
@ -140,9 +139,6 @@ function initPage() {
form.submit(); form.submit();
}; };
}); });
document.querySelectorAll('input[name="newMonitor[ImageBufferCount]"],input[name="newMonitor[Width]"],input[name="newMonitor[Height]"]').forEach(function(el) {
el.oninput = window['update_estimated_ram_use'].bind(el);
});
document.querySelectorAll('select[name="newMonitor[Function]"]').forEach(function(el) { document.querySelectorAll('select[name="newMonitor[Function]"]').forEach(function(el) {
el.onchange = function() { el.onchange = function() {
@ -269,15 +265,6 @@ function random_WebColour() {
); );
} }
function update_estimated_ram_use() {
var buffer_count = document.querySelectorAll('input[name="newMonitor[ImageBufferCount]"]')[0].value;
var width = document.querySelectorAll('input[name="newMonitor[Width]"]')[0].value;
var height = document.querySelectorAll('input[name="newMonitor[Height]"]')[0].value;
var colours = document.querySelectorAll('select[name="newMonitor[Colours]"]')[0].value;
document.getElementById('estimated_ram_use').innerHTML = human_filesize(buffer_count * width * height * colours, 0);
}
function updateLatitudeAndLongitude(latitude, longitude) { function updateLatitudeAndLongitude(latitude, longitude) {
var form = document.getElementById('contentForm'); var form = document.getElementById('contentForm');
form.elements['newMonitor[Latitude]'].value = latitude; form.elements['newMonitor[Latitude]'].value = latitude;