Replace 'const' keyword with 'var' in javascript code

Change-Id: Ic440f06cd77d7adb036f0c18f6fdf8c5f411fa37
This commit is contained in:
Ilya Shakhat 2015-05-19 17:18:31 +03:00
parent fc00bb4381
commit 34836c583b

View File

@ -45,25 +45,25 @@
$(function () { $(function () {
const fields = ["scenario", "test", "concurrency", "node", "agent"]; var fields = ["scenario", "test", "concurrency", "node", "agent"];
const state = { var state = {
scenario: "", scenario: "",
test: "", test: "",
concurrency: "", concurrency: "",
node: "", node: "",
agent: "" agent: ""
}; };
const tablePageSize = 10; var tablePageSize = 10;
// compiled templates // compiled templates
const scenario_source_template = Handlebars.compile($("#scenario_source_template").html()); var scenario_source_template = Handlebars.compile($("#scenario_source_template").html());
const test_specification_template = Handlebars.compile($("#test_specification_template").html()); var test_specification_template = Handlebars.compile($("#test_specification_template").html());
const agents_table_template = Handlebars.compile($("#agents_table_template").html()); var agents_table_template = Handlebars.compile($("#agents_table_template").html());
const records_table_template = Handlebars.compile($("#records_table_template").html()); var records_table_template = Handlebars.compile($("#records_table_template").html());
const executor_template = Handlebars.compile($("#executor_template").html()); var executor_template = Handlebars.compile($("#executor_template").html());
const concurrency_summary_template = Handlebars.compile($("#concurrency_summary_template").html()); var concurrency_summary_template = Handlebars.compile($("#concurrency_summary_template").html());
const test_summary_template = Handlebars.compile($("#test_summary_template").html()); var test_summary_template = Handlebars.compile($("#test_summary_template").html());
const sla_table_template = Handlebars.compile($("#sla_table_template").html()); var sla_table_template = Handlebars.compile($("#sla_table_template").html());
function initSingleSelector(name, values) { function initSingleSelector(name, values) {
var selectorId = "#" + name + "_selector"; var selectorId = "#" + name + "_selector";