Add: refresh. Fix report order
This commit is contained in:
parent
bd29c07090
commit
e44b5008ca
|
@ -11,7 +11,7 @@ var linterReport = (() => { // eslint-disable-line no-var
|
||||||
table = createTable(cm);
|
table = createTable(cm);
|
||||||
cms.set(cm, table);
|
cms.set(cm, table);
|
||||||
const container = $('.lint-report-container');
|
const container = $('.lint-report-container');
|
||||||
if (typeof editor !== 'object') {
|
if (typeof editor === 'object') {
|
||||||
container.append(table.element);
|
container.append(table.element);
|
||||||
} else {
|
} else {
|
||||||
const nextSibling = findNextSibling(cms, cm);
|
const nextSibling = findNextSibling(cms, cm);
|
||||||
|
@ -57,7 +57,11 @@ var linterReport = (() => { // eslint-disable-line no-var
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function refresh() {}
|
function refresh() {
|
||||||
|
for (const table of cms.values()) {
|
||||||
|
table.update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function createTable(cm) {
|
function createTable(cm) {
|
||||||
const caption = $create('caption');
|
const caption = $create('caption');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user