summaryrefslogtreecommitdiff
path: root/source/pdf/js
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-02-13 14:58:33 +0100
committerTor Andersson <tor.andersson@artifex.com>2014-02-13 16:11:51 +0100
commit927d8d998b7f77aa4ed2e839046394627e147673 (patch)
treedf52b71c269622820b84f9c9ce2638b0793d702a /source/pdf/js
parentddfe0044ce13f5a0b3d3d3eca1319530e8bc60aa (diff)
downloadmupdf-927d8d998b7f77aa4ed2e839046394627e147673.tar.xz
pdf-util.js: Improve alert messages (also include the event value).
Diffstat (limited to 'source/pdf/js')
-rw-r--r--source/pdf/js/pdf-util.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/pdf/js/pdf-util.js b/source/pdf/js/pdf-util.js
index dd7aa09c..0416ce7a 100644
--- a/source/pdf/js/pdf-util.js
+++ b/source/pdf/js/pdf-util.js
@@ -480,7 +480,7 @@ function AFDate_KeystrokeEx(fmt)
{
if (event.willCommit && !AFParseDateEx(event.value, fmt))
{
- app.alert("Invalid date/time. please ensure that the date/time exists. Field [ "+event.target.name+" ] should match format "+fmt);
+ app.alert("The date/time entered ("+event.value+") does not match the format ("+fmt+") of the field [ "+event.target.name+" ]");
event.rc = false;
}
}
@@ -510,7 +510,7 @@ function AFTime_Keystroke(index)
{
if (event.willCommit && !AFParseTime(event.value, null))
{
- app.alert("The value entered does not match the format of the field [ "+event.target.name+" ]");
+ app.alert("The value entered ("+event.value+") does not match the format of the field [ "+event.target.name+" ]");
event.rc = false;
}
}
@@ -618,7 +618,7 @@ function AFSpecial_KeystrokeEx(fmt)
if (event.rc)
event.value = res;
else if (event.willCommit)
- app.alert("The value entered does not match the format of the field [ "+event.target.name+" ] should be "+fmt);
+ app.alert("The value entered ("+event.value+") does not match the format of the field [ "+event.target.name+" ] should be "+fmt);
}
function AFSpecial_Keystroke(index)
@@ -646,7 +646,7 @@ function AFSpecial_Keystroke(index)
}
if (!event.rc)
- app.alert("The value entered does not match the format of the field [ "+event.target.name+" ]");
+ app.alert("The value entered ("+event.value+") does not match the format of the field [ "+event.target.name+" ]");
}
}
@@ -693,7 +693,7 @@ function AFNumber_Keystroke(nDec, sepStyle, negStyle, currStyle, strCurrency, bC
event.rc = false;
if (!event.rc)
- app.alert("The value entered ("+event.value+") does not match the format of the field ["+event.target.name+"]");
+ app.alert("The value entered ("+event.value+") does not match the format of the field [ "+event.target.name+" ]");
}
}
@@ -865,10 +865,10 @@ function AFRange_Validate(lowerCheck, lowerLimit, upperCheck, upperLimit)
if (!event.rc)
{
if (lowerCheck && upperCheck)
- app.alert(util.printf("Invalid value: must be greater than or equal to %s and less than or equal to %s", lowerLimit, upperLimit));
+ app.alert(util.printf("The entered value ("+event.value+") must be greater than or equal to %s and less than or equal to %s", lowerLimit, upperLimit));
else if (lowerCheck)
- app.alert(util.printf("Invalid value: must be greater than or equal to %s", lowerLimit));
+ app.alert(util.printf("The entered value ("+event.value+") must be greater than or equal to %s", lowerLimit));
else
- app.alert(util.printf("Invalid value: must be less than or equal to %s", upperLimit));
+ app.alert(util.printf("The entered value ("+event.value+") must be less than or equal to %s", upperLimit));
}
}