mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 17:58:41 +00:00
Fix increment order
This commit is contained in:
parent
727bf9e559
commit
a7742099ae
|
|
@ -15,7 +15,7 @@ const datalistAppend = function (action, callback)
|
||||||
|
|
||||||
let option;
|
let option;
|
||||||
|
|
||||||
for (let i = 0; i < dataLength; i++) {
|
for (let i = 0; i < dataLength; ++i) {
|
||||||
option = document.createElement('option');
|
option = document.createElement('option');
|
||||||
option.value = action.data[i][action.text];
|
option.value = action.data[i][action.text];
|
||||||
option.setAttribute('data-value', action.data[i][action.value]);
|
option.setAttribute('data-value', action.data[i][action.value]);
|
||||||
|
|
|
||||||
|
|
@ -18,14 +18,14 @@ const tableAppend = function (action, callback)
|
||||||
|
|
||||||
let row, cell, text, rawText;
|
let row, cell, text, rawText;
|
||||||
|
|
||||||
for (let i = 0; i < dataLength; i++) {
|
for (let i = 0; i < dataLength; ++i) {
|
||||||
if (tbody === null) {
|
if (tbody === null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
row = tbody.insertRow(tbody.rows.length);
|
row = tbody.insertRow(tbody.rows.length);
|
||||||
|
|
||||||
for (let j = 0; j < headerLength; j++) {
|
for (let j = 0; j < headerLength; ++j) {
|
||||||
if (row === null) {
|
if (row === null) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
this.domObserver = new MutationObserver(function(mutations) {
|
this.domObserver = new MutationObserver(function(mutations) {
|
||||||
const length = mutations.length;
|
const length = mutations.length;
|
||||||
|
|
||||||
for(let i = 0; i < length; i++) {
|
for(let i = 0; i < length; ++i) {
|
||||||
self.app.eventManager.trigger(mutations[i].target.id + '-' + mutations[i].type, 0, mutations[i]);
|
self.app.eventManager.trigger(mutations[i].target.id + '-' + mutations[i].type, 0, mutations[i]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user