Add sortcut to /status/sessions

This commit is contained in:
JonnyWong16 2017-12-31 17:37:07 -08:00
commit 63814584e9
4 changed files with 15 additions and 1 deletions

View file

@ -207,6 +207,7 @@
<script src="${http_root}js/moment-with-locale.js"></script>
<script src="${http_root}js/jquery.scrollbar.min.js"></script>
<script src="${http_root}js/jquery.mousewheel.min.js"></script>
<script src="${http_root}js/jquery.tripleclick.min.js"></script>
<script>
var date_format = 'YYYY-MM-DD';
var time_format = 'hh:mm a';
@ -647,6 +648,12 @@
});
});
});
$('#sessions-shortcut').on('tripleclick', function () {
$.getJSON('return_sessions_url', function(sessions_url) {
window.open(sessions_url, '_blank');
});
});
% endif
</script>
% endif