Hide table rows w/o values instead of showing "<not found>"

This commit is contained in:
Carsten Grohmann 2018-04-16 21:06:20 +02:00
parent 0b3beb07c6
commit e3558a911f
2 changed files with 8 additions and 4 deletions

View File

@ -30,8 +30,8 @@
content: " pages";
}
.notfound {
text-align: right;
.hide_tablerow {
display: none;
}
table {

View File

@ -464,8 +464,8 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
element.textContent = content
if content == '<not found>':
element.classList.remove('kbytes', 'pages')
element.classList.add('notfound')
row = element.parentNode
row.classList.add('hide_tablerow')
elif item.endswith('_kb'):
element.classList.add('kbytes')
elif item.endswith('_pages'):
@ -485,6 +485,10 @@ Killed process 6576 (java) total-vm:33914892kB, anon-rss:20629004kB, file-rss:0k
hide_element("notify_box")
show_element("input")
# show hidden rows
for element in document.getElementsByClassName('hide_tablerow'):
element.classList.remove('hide_tablerow')
self.lines = []
self.details = {}
for item in self.mem_modinfo_entries: