Permalink
Browse files

bugfixes

  • Loading branch information...
root
root committed Dec 21, 2011
1 parent ae48368 commit 257a1a6a0307bf95b9e08be92268a233884d714b
Showing with 9 additions and 8 deletions.
  1. +9 −8 result.html
View
@@ -40,7 +40,7 @@
currentSite = val['site']['value'];
// if array doesn't exist yet, create it
storage[amountOfPages+1] = ( typeof storage[amountOfPages+1] != 'undefined' && storage[amountOfPages+1] instanceof Array ) ? storage[amountOfPages+1] : [];
- storage[amountOfPages+1][0]='<a href="wecompare.html?s='+val['site']['value']+' ">' +val['site']['value']+ ' </a>';
+ storage[amountOfPages+1][0]='<a href="wecompare.html?s='+val['site']['value']+'">' +val['site']['value']+ ' </a>';
amountOfPages=amountOfPages+1;
tempAmountOfValues=0;
};
@@ -63,24 +63,25 @@
});
// print the arrays in a table
- items.push('<table id="tblResult" name="grid1" gridWidth="100%" gridHeight="auto" style="width:80%;" imgpath="codebase/imgs/" border="1" lightnavigation="true"> <tr> ');
+ items.push('<table id="tblResult" name="grid1" gridWidth="100%" gridHeight="auto" style="width:80%;" imgpath="codebase/imgs/" border="1" lightnavigation="true">');
var temp=0;
var depth=0;
- while (depth < storage.length) {
- while (temp < storage[0].length) {
+ while (depth < storage.length) {
+ items.push('<tr> ');
+ while (temp < storage[0].length) {
if(typeof storage[depth][temp] == 'undefined') {
items.push('<td></td> ');
}
else {
items.push('<td> '+storage[depth][temp]+' </td>');
}
++temp;
- }
- items.push('</tr> <tr>');
- ++depth;
+ }
+ items.push('</tr> ');
+ ++depth;
temp=0;
}
- items.push('</tr></table>');
+ items.push('</table>');
tempAmountOfValues=0;
items.push('<small> '+(storage[0].length-1)+' attributes on '+(storage.length-1)+' pages </small>');

0 comments on commit 257a1a6

Please sign in to comment.