diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-19 13:06:02 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-19 13:07:54 +0200 |
| commit | 7bdf6e025f1fbbbc7af65f80ff7aa5922ff8e252 (patch) | |
| tree | 4a84fc10527021d9fc947601a414ab12748bc3d9 /dashboard/app/static | |
| parent | 732e4256fb6f7221d07af3d900951d77eabff611 (diff) | |
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.
Diffstat (limited to 'dashboard/app/static')
| -rw-r--r-- | dashboard/app/static/common.js | 4 |
1 files changed, 2 insertions, 2 deletions
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; |
