From 7bdf6e025f1fbbbc7af65f80ff7aa5922ff8e252 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 19 Jun 2018 13:06:02 +0200 Subject: dashboard/app: fix table sorting on firefox Under Firefox 60 browser, sort operation does not work and ReferenceError: event is not defined error message is printed in the Web Console window. Let's explicitly pass an object reference to the sortTable function. Credit goes to Tetsuo Handa. --- dashboard/app/bug.html | 22 +++++++++++----------- dashboard/app/static/common.js | 4 ++-- dashboard/app/templates.html | 20 ++++++++++---------- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/dashboard/app/bug.html b/dashboard/app/bug.html index 580454e23..c421b9db3 100644 --- a/dashboard/app/bug.html +++ b/dashboard/app/bug.html @@ -37,17 +37,17 @@ Page with details about a single bug. - - - - - - - - - - - + + + + + + + + + + + {{range $c := $.Crashes}} diff --git a/dashboard/app/static/common.js b/dashboard/app/static/common.js index c2e021d81..5b4f8737c 100644 --- a/dashboard/app/static/common.js +++ b/dashboard/app/static/common.js @@ -1,8 +1,8 @@ // Copyright 2018 syzkaller project authors. All rights reserved. // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -function sortTable(colName, conv) { - table = event.srcElement.parentNode.parentNode.parentNode; +function sortTable(item, colName, conv) { + table = item.parentNode.parentNode.parentNode; rows = table.getElementsByTagName("tr"); col = findColumnByName(rows[0].getElementsByTagName("th"), colName); values = new Array; diff --git a/dashboard/app/templates.html b/dashboard/app/templates.html index 7ad794cf3..772135fa7 100644 --- a/dashboard/app/templates.html +++ b/dashboard/app/templates.html @@ -48,22 +48,22 @@ Use of this source code is governed by Apache 2 LICENSE that can be found in the {{if $.ShowNamespace}} - + {{end}} - - - - - + + + + + {{if $.ShowPatch}} - - + + {{end}} {{if $.ShowPatched}} - + {{end}} {{if $.ShowStatus}} - + {{end}} {{range $b := .Bugs}} -- cgit mrf-deployment
All crashes ({{.Bug.NumCrashes}}):
ManagerTimeKernelCommitSyzkallerConfigLogReportSyz reproC reproMaintainersManagerTimeKernelCommitSyzkallerConfigLogReportSyz reproC reproMaintainers
{{$.Caption}}:
KernelKernelTitleReproCountLastReportedTitleReproCountLastReportedClosedPatchClosedPatchPatchedPatchedStatusStatus