Skip to content

Commit

Permalink
adis: try to use alert messages in ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
benibela committed Jul 21, 2024
1 parent e14bc1f commit 098f750
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/libraries/templates/aDISWeb/orderConfirmed
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
$submits := .//input[@type="submit"],
$submit := ($submits[contains(@value, "bestellen")],$submits)[1]
return
if (matches($message, "(ist +erfolgt|Außenmagazinbestellung für.*:|Ergebnis)")) then (
if (matches($message, "(ist +erfolgt|Außenmagazinbestellung|Ergebnis)")) then (
final-form := form(., $submit),
form := ()
form := (),
if (contains($message, "Außenmagazinbestellung")) { vl:alert($message) }
) else if ($message ne "" and ($message = get("oldmessage", "") or count($submits) eq 1 ) ) then (
$error := $message,
form := (),
Expand Down

0 comments on commit 098f750

Please sign in to comment.