debug: 3 points de debug dans Livret.lancer
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -240,12 +240,14 @@ CDImp.Livret.delivretiser = function (doc) {
|
|||||||
// Point d'entree du module (appele depuis le panneau principal, Module 1)
|
// Point d'entree du module (appele depuis le panneau principal, Module 1)
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
CDImp.Livret.lancer = function (doc) {
|
CDImp.Livret.lancer = function (doc) {
|
||||||
|
app.alert("DEBUG 1: entree dans lancer");
|
||||||
try {
|
try {
|
||||||
doc = CDImp.Util.getDocActif(doc);
|
doc = CDImp.Util.getDocActif(doc);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
app.alert("Veuillez ouvrir un document PDF avant de lancer l'imposition.");
|
app.alert("DEBUG: pas de doc - " + e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
app.alert("DEBUG 2: doc ok, numPages=" + doc.numPages);
|
||||||
|
|
||||||
var choix = app.alert({
|
var choix = app.alert({
|
||||||
cMsg: "Que souhaitez-vous faire ?\n\nOui = Creer un livret (imposition)\nNon = Delivretiser (revenir a l'ordre de lecture)",
|
cMsg: "Que souhaitez-vous faire ?\n\nOui = Creer un livret (imposition)\nNon = Delivretiser (revenir a l'ordre de lecture)",
|
||||||
@@ -253,6 +255,7 @@ CDImp.Livret.lancer = function (doc) {
|
|||||||
nIcon: 2,
|
nIcon: 2,
|
||||||
nType: 3
|
nType: 3
|
||||||
});
|
});
|
||||||
|
app.alert("DEBUG 3: choix=" + choix);
|
||||||
// 4=Oui, 3=Non, 2=Annuler
|
// 4=Oui, 3=Non, 2=Annuler
|
||||||
if (choix === 2) {
|
if (choix === 2) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user