Fix: table.update -> table.updateCaption

This commit is contained in:
eight 2018-09-02 14:40:52 +08:00
parent b27b6676fa
commit dd13a68f0c

View File

@ -23,7 +23,7 @@ var linterReport = (() => {
container.insertBefore(table.element, nextSibling && cms.get(nextSibling).element);
}
}
table.update();
table.updateCaption();
table.updateAnnotations(annotations);
updateCount();
});
@ -70,7 +70,7 @@ var linterReport = (() => {
function refresh() {
for (const table of cms.values()) {
table.update();
table.updateCaption();
}
}
@ -83,10 +83,10 @@ var linterReport = (() => {
element: table,
trs,
updateAnnotations,
update
updateCaption
};
function update() {
function updateCaption() {
caption.textContent = typeof editor === 'object' ?
'' : `${t('sectionCode')} ${editors.indexOf(cm) + 1}`;
}