mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
JS -- Add listener for sandbox events only if there are some actions
* When no actions then set it to null instead of empty object * Even if a field has no actions, it needs to listen to events from the sandbox in order to be updated if an action changes something in it.
This commit is contained in:
parent
55f55f5859
commit
a5279897a7
13 changed files with 170 additions and 28 deletions
|
@ -525,6 +525,10 @@ class WorkerMessageHandler {
|
|||
return pdfManager.ensureDoc("fieldObjects");
|
||||
});
|
||||
|
||||
handler.on("HasJSActions", function (data) {
|
||||
return pdfManager.ensureDoc("hasJSActions");
|
||||
});
|
||||
|
||||
handler.on("GetCalculationOrderIds", function (data) {
|
||||
return pdfManager.ensureDoc("calculationOrderIds");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue