diff options
Diffstat (limited to 'web/analysis/main.js')
-rw-r--r-- | web/analysis/main.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/web/analysis/main.js b/web/analysis/main.js index 735c5d8..196e6ec 100644 --- a/web/analysis/main.js +++ b/web/analysis/main.js @@ -1,8 +1,5 @@ // --- BEGIN Global variables ----------------------------------- -var rankedOnly = null; // Whether to adapt GUI to only show - // information related to rankings - var testCaseChecked = new Array(); // --- END Global variables ------------------------------------- @@ -151,7 +148,6 @@ function updateActions() { context1_ = context1(); if (context1_ == null) { // special case: no contexts are available setActionUrl("action_stats1", ""); - setActionUrl("action_rankings", ""); setActionUrl("action_stats2", ""); setActionUrl("action_tsstats", ""); return; @@ -175,22 +171,6 @@ function updateActions() { url_stats1 += "&sha1=" + context1_["sha1"]; url_stats1 += "&testcasefilter=" + testCaseFilter; - // --- rankings --- - if (context1_["rankingsExist"]) { - url_rankings = "rankings.shtml"; - url_rankings += "?db=" + $('#database').val(); - url_rankings += "&cmd=rankings"; - url_rankings += "&host=" + encodeURIComponent(context1_["host"]); - url_rankings += "&platform=" + - encodeURIComponent(context1_["platform"]); - url_rankings += "&branch=" + encodeURIComponent(context1_["branch"]); - url_rankings += "&sha1=" + context1_["sha1"]; - url_rankings += "&testcasefilter=" + testCaseFilter; - url_rankings += "&maxsize=" + $("#max_rank_size option:selected").val(); - } else { - url_rankings = ""; - } - // --- stats2 --- if (context2_["host"] != "") { url_stats2 = "stats2.html"; @@ -241,7 +221,6 @@ function updateActions() { } setActionUrl("action_stats1", url_stats1); - setActionUrl("action_rankings", url_rankings); setActionUrl("action_stats2", url_stats2); setActionUrl("action_tsstats", url_tsstats); } @@ -287,7 +266,6 @@ function context1() { var snapshot = tr.find("select[name = 'snapshot'] option:selected"); context["sha1"] = snapshot.attr("value"); context["snapshotIndex"] = snapshot.index(); - context["rankingsExist"] = (snapshot.attr("text")[0] == 'R'); return context; } @@ -327,7 +305,6 @@ function fetchContexts() { query = "?db=" + database; query += "&cmd=contexts"; - query += "&rankedonly=" + (rankedOnly ? 1 : 0); url = "http://" + location.host + "/cgi-bin/getstatswrapper" + query; //alert("url: >" + url + "<"); @@ -424,12 +401,6 @@ function fetchContexts() { $("#div_availableContexts").css("display", "block"); - if (rankedOnly) { - // In contexts table, disable the 'Context 2' column: - $("#contextsTable th:eq(1)").remove(); - $("#contextsTable td:nth-child(2)").remove(); - } - fetchTestCases(); } } @@ -543,26 +514,7 @@ function clickContextRadioButton(cb, col) { $(document).ready(function() { - var args = queryStringArgs(); - - var rankedOnly_int = parseInt(extractArg(args, "rankedonly")); - rankedOnly = ((!isNaN(rankedOnly_int)) && (rankedOnly_int != 0)) - if (rankedOnly) { - // In actions table, keep only header and rows related to - // 'Show rankings...' action: - $("#actionTable tr").css("display", "none"); - $("#actionTable tr[id='actionTable_header']").css("display", ""); - $("#actionTable tr[id*='rankings']").css("display", ""); - - $("#title").text("BM2 Analysis (ranked snapshots only)"); - - $("#div_analysisPageRankedOnlyLink").css("display", "none"); - } else { - $("#div_analysisPageLink").css("display", "none"); - } - // Set default action arguments: - $("#max_rank_size option[value='10']").attr("selected", true); $("#diff_tol option[value='1.1']").attr("selected", true); $("#dur_tol_min option[value='3']").attr("selected", true); $("#dur_tol_max option[value='10']").attr("selected", true); |