|
|
@@ -39,7 +39,7 @@ window.Header = function getHeader(object) {
|
|
|
if (be.class)th.className = be.class;
|
|
|
tr.appendChild(th);
|
|
|
});
|
|
|
- _targetDom.insertBefore(tr, _targetDom.firstChild);
|
|
|
+ _targetDom.insertBefore(tr, _targetDom.firstElementChild);
|
|
|
}
|
|
|
function appendFloat(div,cla="") {
|
|
|
div.style.overflowX = "hidden";
|
|
|
@@ -80,7 +80,7 @@ window.Header = function getHeader(object) {
|
|
|
while(trs[0] && trs[0].tagName !== 'TR')trs = trs[0].children;
|
|
|
if (trs[0]){
|
|
|
for (let j=0;j<trs.length;j++){
|
|
|
- trs[j].children[i].firstChild.style.width = wid+"px";
|
|
|
+ trs[j].children[i].firstElementChild.style.width = wid+"px";
|
|
|
trs[j].children[i].style.minWidth = wid+"px";
|
|
|
}
|
|
|
}
|
|
|
@@ -92,7 +92,7 @@ window.Header = function getHeader(object) {
|
|
|
tr.appendChild(th);
|
|
|
}
|
|
|
bindMove(tr);
|
|
|
- if (_targetDom.firstChild)_targetDom.insertBefore(tr, _targetDom.firstChild);
|
|
|
+ if (_targetDom.firstElementChild)_targetDom.insertBefore(tr, _targetDom.firstElementChild);
|
|
|
else _targetDom.appendChild(tr);
|
|
|
}
|
|
|
|
|
|
@@ -245,7 +245,7 @@ window.Header = function getHeader(object) {
|
|
|
moveTd.dom.style.cursor = 'default';
|
|
|
moveTd.oldX = undefined;
|
|
|
setTimeout(function () {
|
|
|
- let column = _columns[(_isCheckAllBox && _targetDom.firstChild) ? moveTd.index-1 : moveTd.index];
|
|
|
+ let column = _columns[(_isCheckAllBox && _targetDom.firstElementChild) ? moveTd.index-1 : moveTd.index];
|
|
|
if (column) localStorage.setItem(_name+column.name, moveTd.dom.offsetWidth);
|
|
|
});
|
|
|
}
|
|
|
@@ -254,7 +254,7 @@ window.Header = function getHeader(object) {
|
|
|
if (moveTd.oldX){
|
|
|
event.stopPropagation();
|
|
|
let diff = event.clientX-moveTd.oldX;
|
|
|
- let newWidth = moveTd.dom.firstChild.offsetWidth+diff+"px";
|
|
|
+ let newWidth = moveTd.dom.firstElementChild.offsetWidth+diff+"px";
|
|
|
if (diff!==0){
|
|
|
let trs = _targetDom.getElementsByTagName("tr");
|
|
|
for (let j=(_before ? 1 : 0);j<trs.length;j++){
|
|
|
@@ -263,7 +263,7 @@ window.Header = function getHeader(object) {
|
|
|
while (table.tagName!=='TABLE') table = table.parentElement;
|
|
|
if (table.id!==object.el)continue;
|
|
|
}
|
|
|
- trs[j].children[moveTd.index].firstChild.style.width = newWidth;
|
|
|
+ trs[j].children[moveTd.index].firstElementChild.style.width = newWidth;
|
|
|
trs[j].children[moveTd.index].style.minWidth = newWidth;
|
|
|
}
|
|
|
moveTd.oldX = event.clientX;
|
|
|
@@ -320,7 +320,7 @@ window.Header = function getHeader(object) {
|
|
|
span.style.color = "white";
|
|
|
div.onclick = showSetting("setting-1");
|
|
|
h1.appendChild(span);
|
|
|
- div.appendChild(h1)
|
|
|
+ div.appendChild(h1);
|
|
|
document.body.appendChild(div);
|
|
|
}
|
|
|
function _createSettingHeader(text,id) {
|