mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +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;
|
||||
|
||||
for (let i = 0; i < dataLength; i++) {
|
||||
for (let i = 0; i < dataLength; ++i) {
|
||||
option = document.createElement('option');
|
||||
option.value = action.data[i][action.text];
|
||||
option.setAttribute('data-value', action.data[i][action.value]);
|
||||
|
|
|
|||
|
|
@ -18,14 +18,14 @@ const tableAppend = function (action, callback)
|
|||
|
||||
let row, cell, text, rawText;
|
||||
|
||||
for (let i = 0; i < dataLength; i++) {
|
||||
for (let i = 0; i < dataLength; ++i) {
|
||||
if (tbody === null) {
|
||||
break;
|
||||
}
|
||||
|
||||
row = tbody.insertRow(tbody.rows.length);
|
||||
|
||||
for (let j = 0; j < headerLength; j++) {
|
||||
for (let j = 0; j < headerLength; ++j) {
|
||||
if (row === null) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
this.domObserver = new MutationObserver(function(mutations) {
|
||||
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]);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user