pdf.js/src/scripting_api
Calixte Denizet 6f4d037a8e [JS] Correctly format field with numbers (bug 1811694, bug 1811510)
In PR #15757, a value is automatically converted into a number when it's possible
but the case of numbers like "000123" has been overlooked and their format must
be preserved.
When a script is doing something like "foo.value + bar.value" and the values are
numbers then "foo.value" must return a number but the displayed value must be what
the user entered or what a script set, so this patch is just adding a a field
_orginalValue in order to track the value has it has defined.
Some people are used to use a comma as decimal separator, hence it must be considered
when a value is parsed into a number.
This patch is fixing a regression introduced by #15757.
2023-01-26 14:57:02 +01:00
..
aform.js [JS] Take into account all the required fields for some computations 2022-10-13 18:33:12 +02:00
app.js [JS] Some functions (print, alert,...) must be called only after a user activation 2022-10-28 18:52:07 +02:00
color.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
common.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
console.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
constants.js JS -- Add few missing constants in global scope 2021-01-11 17:19:28 +01:00
doc.js [JS] Run the named actions before running the format when the file is open (issue #15818) 2022-12-13 21:12:32 +01:00
error.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
event.js [JS] Correctly format field with numbers (bug 1811694, bug 1811510) 2023-01-26 14:57:02 +01:00
field.js [JS] Correctly format field with numbers (bug 1811694, bug 1811510) 2023-01-26 14:57:02 +01:00
fullscreen.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
initialization.js [JS] Fix few bugs present in the pdf for issue #14862 2022-05-03 15:48:44 +02:00
pdf_object.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
print_params.js JS -- Implement doc object 2020-11-10 16:16:42 +01:00
proxy.js [JS] Correctly format field with numbers (bug 1811694, bug 1811510) 2023-01-26 14:57:02 +01:00
thermometer.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
util.js [JS] By default, a text field value must be treated as a number (bug 1802888) 2022-11-28 16:24:01 +01:00