libs/web: fix row sorting in IE
This commit is contained in:
parent
94e437c2f0
commit
8193a249f1
1 changed files with 8 additions and 2 deletions
|
@ -721,13 +721,19 @@ function cbi_validate_field(cbid, optional, type)
|
|||
function cbi_row_swap(elem, up, store)
|
||||
{
|
||||
var tr = elem.parentNode;
|
||||
while (tr && tr.nodeName != 'tr')
|
||||
while (tr && tr.nodeName.toLowerCase() != 'tr')
|
||||
tr = tr.parentNode;
|
||||
|
||||
if (!tr)
|
||||
return false;
|
||||
|
||||
var table = tr.parentNode;
|
||||
while (table && table.nodeName != 'table')
|
||||
while (table && table.nodeName.toLowerCase() != 'table')
|
||||
table = table.parentNode;
|
||||
|
||||
if (!table)
|
||||
return false;
|
||||
|
||||
var s = up ? 3 : 2;
|
||||
var e = up ? table.rows.length : table.rows.length - 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue