Showing
1 changed file
with
2 additions
and
3 deletions
@@ -52,7 +52,7 @@ function getProjects() { | @@ -52,7 +52,7 @@ function getProjects() { | ||
52 | var name = obj[i].name; | 52 | var name = obj[i].name; |
53 | if ("1" == order) { | 53 | if ("1" == order) { |
54 | order1HTML += "<div class='rdio rdio-primary' style='display: inline'>"; | 54 | order1HTML += "<div class='rdio rdio-primary' style='display: inline'>"; |
55 | - order1HTML += " <input name='project' type='radio' id='" + name + "' value='" + name + "' onclick='changeProject()' checked='checked'/>"; | 55 | + order1HTML += " <input name='project' type='radio' id='" + name + "' value='" + name + "' onclick='changeProject()'/>"; |
56 | order1HTML += "<label for='" + name + "' style='width: 200px'>" + name + "</label></div>"; | 56 | order1HTML += "<label for='" + name + "' style='width: 200px'>" + name + "</label></div>"; |
57 | if (order1num % 4 == 0) { | 57 | if (order1num % 4 == 0) { |
58 | order1HTML += "</br>"; | 58 | order1HTML += "</br>"; |
@@ -70,7 +70,6 @@ function getProjects() { | @@ -70,7 +70,6 @@ function getProjects() { | ||
70 | 70 | ||
71 | } | 71 | } |
72 | document.getElementById("project-div").innerHTML = order1HTML + "<hr>" + order2HTML + "<hr>"; | 72 | document.getElementById("project-div").innerHTML = order1HTML + "<hr>" + order2HTML + "<hr>"; |
73 | - changeProject(); | ||
74 | } | 73 | } |
75 | }, | 74 | }, |
76 | error: function (e) { | 75 | error: function (e) { |
@@ -197,7 +196,7 @@ function changeProject(){ | @@ -197,7 +196,7 @@ function changeProject(){ | ||
197 | changeservers(); | 196 | changeservers(); |
198 | }, | 197 | }, |
199 | error: function (e) { | 198 | error: function (e) { |
200 | - alert("获取项目失败环境失败"); | 199 | + alert("获取项目环境失败"); |
201 | } | 200 | } |
202 | }); | 201 | }); |
203 | } | 202 | } |
-
Please register or login to post a comment