height and width of the table are unreliable because of multiple users. remove them
This commit is contained in:
parent
a3254a2619
commit
ac50bf7286
@ -8,9 +8,6 @@ define([
|
|||||||
var $body = $t.find('tbody');
|
var $body = $t.find('tbody');
|
||||||
var $foot = $t.find('tfoot');
|
var $foot = $t.find('tfoot');
|
||||||
|
|
||||||
var width = $body.find('tr:first-of-type td').length;
|
|
||||||
var height = $body.find('tr').length;
|
|
||||||
|
|
||||||
var addRow = function (first, Rest, uid) {
|
var addRow = function (first, Rest, uid) {
|
||||||
var $row = $('<tr>', {
|
var $row = $('<tr>', {
|
||||||
'data-rt-uid': uid,
|
'data-rt-uid': uid,
|
||||||
@ -22,7 +19,6 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
$body.append($row);
|
$body.append($row);
|
||||||
height++;
|
|
||||||
return $row;
|
return $row;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -31,15 +27,14 @@ define([
|
|||||||
'data-rt-uid': uid,
|
'data-rt-uid': uid,
|
||||||
}).append(first));
|
}).append(first));
|
||||||
|
|
||||||
$body.find('tr').each(function (i) {
|
var $width = $body.find('tr').each(function (i) {
|
||||||
// each checkbox needs a uid corresponding to its role
|
// each checkbox needs a uid corresponding to its role
|
||||||
var rowId = $(this).data('rt-uid');
|
var rowId = $(this).data('rt-uid');
|
||||||
$(this).append($('<td>').append(Rest(xy(uid, rowId))));
|
$(this).append($('<td>').append(Rest(xy(uid, rowId))));
|
||||||
});
|
});
|
||||||
|
|
||||||
$foot.find('tr').append($('<td>', { }));
|
$foot.find('tr').append($('<td>', { }));
|
||||||
width++;
|
return $width.length;
|
||||||
return width;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user