1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Bug #645: Small fixes in new loops.

This commit is contained in:
Hector Sanjuan 2011-05-16 15:46:03 +02:00 committed by Ruben S. Montero
parent 993cc81d38
commit aeacf6a7c8
2 changed files with 3 additions and 3 deletions

View File

@ -297,8 +297,8 @@ var vm_actions = {
//update the tab and pop it up again
var log_lines = res.split("\n");
var colored_log = '';
for (var line = 0; line < log_lines.length;++line){
line = log_lines[line];
for (var i = 0; i < log_lines.length;i++){
var line = log_lines[i];
if (line.match(/\[E\]/)){
line = '<span class="vm_log_error">'+line+'</span>';
}

View File

@ -352,7 +352,7 @@ function onError(request,error_json) {
var value;
rows = ["method","action","object","id","reason"];
message = "";
for (i = 0; i<rows.length; ++i){
for (i = 0; i<rows.length; i++){
key = rows[i];
value = eval(key);
if (value)