Commit ea0d1c38 authored by Nicolas Wavrant's avatar Nicolas Wavrant

runner: javascript global var is now declared in a local scope

parent 50ca3386
......@@ -59,7 +59,7 @@ $(document).ready(function () {
},
success: function (data) {
if (data.code === 1) {
url = 'https://' + $("input#username").val() + ':' + $("input#password").val() + '@' + location.host + $SCRIPT_ROOT + '/';
var url = 'https://' + $("input#username").val() + ':' + $("input#password").val() + '@' + location.host + $SCRIPT_ROOT + '/';
window.location.href = url;
} else {
$("#error").Popup(data.result, {type: 'error', duration: 5000});
......
......@@ -7,7 +7,6 @@
//Global Traitment!!!
var url = $SCRIPT_ROOT + "/slapgridResult";
var currentState = false;
var running = false;
var currentProcess = "";
......@@ -85,7 +84,8 @@ function writeLogs(data) {
function getRunningState() {
"use strict";
var build_success = 0,
var url = $SCRIPT_ROOT + "/slapgridResult",
build_success = 0,
run_success = 0,
param = {
position: logReadingPosition,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment