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/templates.html | |
| 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/templates.html')
| -rw-r--r-- | dashboard/app/templates.html | 20 |
1 files changed, 10 insertions, 10 deletions
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 <caption id="{{.Fragment}}">{{$.Caption}}:</caption> <tr> {{if $.ShowNamespace}} - <th><a onclick="return sortTable('Kernel', textSort)" href="#">Kernel</a></th> + <th><a onclick="return sortTable(this, 'Kernel', textSort)" href="#">Kernel</a></th> {{end}} - <th><a onclick="return sortTable('Title', textSort)" href="#">Title</a></th> - <th><a onclick="return sortTable('Repro', reproSort)" href="#">Repro</a></th> - <th><a onclick="return sortTable('Count', numSort)" href="#">Count</a></th> - <th><a onclick="return sortTable('Last', timeSort)" href="#">Last</a></th> - <th><a onclick="return sortTable('Reported', timeSort)" href="#">Reported</a></th> + <th><a onclick="return sortTable(this, 'Title', textSort)" href="#">Title</a></th> + <th><a onclick="return sortTable(this, 'Repro', reproSort)" href="#">Repro</a></th> + <th><a onclick="return sortTable(this, 'Count', numSort)" href="#">Count</a></th> + <th><a onclick="return sortTable(this, 'Last', timeSort)" href="#">Last</a></th> + <th><a onclick="return sortTable(this, 'Reported', timeSort)" href="#">Reported</a></th> {{if $.ShowPatch}} - <th><a onclick="return sortTable('Closed', timeSort)" href="#">Closed</a></th> - <th><a onclick="return sortTable('Patch', textSort)" href="#">Patch</a></th> + <th><a onclick="return sortTable(this, 'Closed', timeSort)" href="#">Closed</a></th> + <th><a onclick="return sortTable(this, 'Patch', textSort)" href="#">Patch</a></th> {{end}} {{if $.ShowPatched}} - <th><a onclick="return sortTable('Patched', patchedSort)" href="#">Patched</a></th> + <th><a onclick="return sortTable(this, 'Patched', patchedSort)" href="#">Patched</a></th> {{end}} {{if $.ShowStatus}} - <th><a onclick="return sortTable('Status', textSort)" href="#">Status</a></th> + <th><a onclick="return sortTable(this, 'Status', textSort)" href="#">Status</a></th> {{end}} </tr> {{range $b := .Bugs}} |
