mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: post judge result to parent window
This commit is contained in:
2 files changed
+2
No files matched your search
@@ -364,6 +364,7 @@ class RecordDetailConnectionHandler extends ConnectionHandler {
|
|||||||
|
|
||||||
async sendUpdate(rdoc: RecordDoc) {
|
async sendUpdate(rdoc: RecordDoc) {
|
||||||
this.send({
|
this.send({
|
||||||
|
status: rdoc.status,
|
||||||
status_html: await this.renderHTML('record_detail_status.html', { rdoc, pdoc: this.pdoc }),
|
status_html: await this.renderHTML('record_detail_status.html', { rdoc, pdoc: this.pdoc }),
|
||||||
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc, pdoc: this.pdoc }),
|
summary_html: await this.renderHTML('record_detail_summary.html', { rdoc, pdoc: this.pdoc }),
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ const page = new NamedPage('record_detail', async () => {
|
|||||||
const newSummary = $(msg.summary_html);
|
const newSummary = $(msg.summary_html);
|
||||||
const oldSummary = $('#summary');
|
const oldSummary = $('#summary');
|
||||||
dd.apply(oldSummary[0], dd.diff(oldSummary[0], newSummary[0]));
|
dd.apply(oldSummary[0], dd.diff(oldSummary[0], newSummary[0]));
|
||||||
|
if (typeof msg.status === 'number' && window.parent) window.parent.postMessage({ status: msg.status });
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user