Removed leading "." in env javascript's fullpath

This commit is contained in:
rxi 2014-04-12 17:54:52 +01:00
parent f48c77cf95
commit f9485a14cb

View File

@ -233,7 +233,7 @@ end
var html = "<table>"; var html = "<table>";
for (var i = 0; json.vars[i]; i++) { for (var i = 0; json.vars[i]; i++) {
var x = json.vars[i]; var x = json.vars[i];
var fullpath = json.path + "." + x.key; var fullpath = (json.path + "." + x.key).replace(/^\./, "");
var k = x.key; var k = x.key;
if (x.type == "table") { if (x.type == "table") {
k = "<a href='#' onclick=\"setEnvPath('" + fullpath + "')\">" + k = "<a href='#' onclick=\"setEnvPath('" + fullpath + "')\">" +