Bring deep-embedding (tab anchors) javascript up-to-date
[?]
Apr 8, 2021, 3:04 PM
KNLY6DMLJEPPKFAAXTPTV6LDPO6UOQ6OJE24F2TA2DA7PKM3UG4ACDependencies
- [2]
SWXX2O4AUpdate boostrap to latest 4.3.1 - [3]
WGUKOIQZFix indentation - [4]
CQQSJLONOn aggregate job pages, show a matrix showing all the constituent builds - [5]
6WRGCITDEnable declarative projects. - [6]
2P7VNAACMove common Javascript code into a separate file - [7]
C3AG65SWAdd one-shot jobsets - [8]
SS4TZXNUDistinguish between permanent evaluation errors and transient input errors - [9]
6HWHYPSWAdd an action menu to evaluations - [10]
D7PL2VWUMove more actions from the top bar - [11]
TFK74CQRPut job status on a separate tab - [12]
JY7BXXOPSplit viewing and editing a project - [13]
4QCXGR4WTabify the eval page - [14]
JPTXSWBOShow whether a job still exists - [15]
4NTIBJ74Implement DELETE for jobsets and use it in the web interface - [*]
ODNCGFQ5* Improved the navigation bar: don't include all projects (since that - [*]
7YBYT2LQ
Change contents
- replacement in src/root/job.tt at line 18
<li class="nav-item active"><a class="nav-link" href="#tabs-status" data-toggle="tab">Status</a></li><li class="nav-item"><a class="nav-link active" href="#tabs-status" data-toggle="tab">Status</a></li> - replacement in src/root/jobset.tt at line 61
<li class="nav-item active"><a class="nav-link" href="#tabs-evaluations" data-toggle="tab">Evaluations</a></li><li class="nav-item"><a class="nav-link active" href="#tabs-evaluations" data-toggle="tab">Evaluations</a></li> - replacement in src/root/project.tt at line 18
<li class="nav-item active"><a class="nav-link" href="#tabs-project" data-toggle="tab">Jobsets</a></li><li class="nav-item"><a class="nav-link active" href="#tabs-project" data-toggle="tab">Jobsets</a></li> - replacement in src/root/static/js/common.js at line 53[3.2005]→[3.2005:2060](∅→∅),[3.2060]→[3.3265:3344](∅→∅),[3.3344]→[3.2134:2144](∅→∅),[3.2134]→[3.2134:2144](∅→∅)
$(function() {if (window.location.hash) {$(".nav-tabs a[href='" + window.location.hash + "']").tab('show');}/* Activates tab according to URL anchor. */if (window.location.hash) {$('.nav-tabs > .nav-item:not(.dropdown) a[href="' + window.location.hash + '"]').tab('show');} - replacement in src/root/static/js/common.js at line 58[3.3346]→[3.3346:3499](∅→∅),[3.3499]→[3.389:468](∅→∅),[3.468]→[3.3554:3566](∅→∅),[3.3554]→[3.3554:3566](∅→∅)
/* If no tab is active, show the first one. */$(".nav-tabs").each(function() {if ($("li.active", this).length > 0) return;$("a", $(this).children("li:not(.dropdown)").first()).tab('show');});$('.nav-tabs').each(function() {if ($('.nav-item:not(.dropdown) a.active',this).length == 0)$('.nav-item:not(.dropdown) a',this).first().tab('show');}); - replacement in src/root/static/js/common.js at line 63
/* Ensure that pressing the back button on another pagenavigates back to the previously selected tab on thispage. */$('.nav-tabs').bind('show', function(e) {var pattern = /#.+/gi;var id = e.target.toString().match(pattern)[0];history.replaceState(null, "", id);});$('.nav-tabs > .nav-item:not(.dropdown) a[href^="#"]').on('click', function() {history.replaceState(null, null, window.location.href.split("#")[0] + $(this).attr("href"));