bug 76386, cookies no longer being sorted, r=blakeross, sr=alecf
This commit is contained in:
Родитель
9c4762f9bf
Коммит
7530282353
|
@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
var keys = [];
|
var keys = [];
|
||||||
for (var x=0; x<n; x++){
|
for (var x=0; x<n; x++){
|
||||||
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
||||||
keys[x] = keyCell.getAttribute('value');
|
keys[x] = keyCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < m; i++) {
|
for (var i = 0; i < m; i++) {
|
||||||
|
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
keys[i] = value_winner;
|
keys[i] = value_winner;
|
||||||
keys[winner] = value_i;
|
keys[winner] = value_i;
|
||||||
} else {
|
} else {
|
||||||
value_i = cell.getAttribute('value');
|
value_i = cell.getAttribute('label');
|
||||||
value_winner = nextCell.getAttribute('value');
|
value_winner = nextCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
cell.setAttribute('value', value_winner);
|
cell.setAttribute('label', value_winner);
|
||||||
nextCell.setAttribute('value', value_i);
|
nextCell.setAttribute('label', value_i);
|
||||||
cell = cell.nextSibling;
|
cell = cell.nextSibling;
|
||||||
nextCell = nextCell.nextSibling;
|
nextCell = nextCell.nextSibling;
|
||||||
position++;
|
position++;
|
||||||
|
|
|
@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
var keys = [];
|
var keys = [];
|
||||||
for (var x=0; x<n; x++){
|
for (var x=0; x<n; x++){
|
||||||
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
||||||
keys[x] = keyCell.getAttribute('value');
|
keys[x] = keyCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < m; i++) {
|
for (var i = 0; i < m; i++) {
|
||||||
|
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
keys[i] = value_winner;
|
keys[i] = value_winner;
|
||||||
keys[winner] = value_i;
|
keys[winner] = value_i;
|
||||||
} else {
|
} else {
|
||||||
value_i = cell.getAttribute('value');
|
value_i = cell.getAttribute('label');
|
||||||
value_winner = nextCell.getAttribute('value');
|
value_winner = nextCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
cell.setAttribute('value', value_winner);
|
cell.setAttribute('label', value_winner);
|
||||||
nextCell.setAttribute('value', value_i);
|
nextCell.setAttribute('label', value_i);
|
||||||
cell = cell.nextSibling;
|
cell = cell.nextSibling;
|
||||||
nextCell = nextCell.nextSibling;
|
nextCell = nextCell.nextSibling;
|
||||||
position++;
|
position++;
|
||||||
|
|
|
@ -54,7 +54,7 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
var keys = [];
|
var keys = [];
|
||||||
for (var x=0; x<n; x++){
|
for (var x=0; x<n; x++){
|
||||||
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
var keyCell = a[x].firstChild.childNodes[columnPosition];
|
||||||
keys[x] = keyCell.getAttribute('value');
|
keys[x] = keyCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < m; i++) {
|
for (var i = 0; i < m; i++) {
|
||||||
|
@ -92,11 +92,11 @@ function bubbleSort(columnPosition, ascending, children)
|
||||||
keys[i] = value_winner;
|
keys[i] = value_winner;
|
||||||
keys[winner] = value_i;
|
keys[winner] = value_i;
|
||||||
} else {
|
} else {
|
||||||
value_i = cell.getAttribute('value');
|
value_i = cell.getAttribute('label');
|
||||||
value_winner = nextCell.getAttribute('value');
|
value_winner = nextCell.getAttribute('label');
|
||||||
}
|
}
|
||||||
cell.setAttribute('value', value_winner);
|
cell.setAttribute('label', value_winner);
|
||||||
nextCell.setAttribute('value', value_i);
|
nextCell.setAttribute('label', value_i);
|
||||||
cell = cell.nextSibling;
|
cell = cell.nextSibling;
|
||||||
nextCell = nextCell.nextSibling;
|
nextCell = nextCell.nextSibling;
|
||||||
position++;
|
position++;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче