summaryrefslogtreecommitdiffstats
path: root/src/web/web.vala
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2013-06-15 23:28:26 +0200
committerSebastian Reichel <sre@ring0.de>2013-06-15 23:28:26 +0200
commitf8edff7c1f1a67b3088296ee842f223a48f4125b (patch)
treeb44a4435b7f58327ba243c97675aec7863b44568 /src/web/web.vala
parente11d76395ce0ba821f58bfb1956a56f6ffc8494b (diff)
downloadserial-barcode-scanner-f8edff7c1f1a67b3088296ee842f223a48f4125b.tar.bz2
replace template variables
Diffstat (limited to 'src/web/web.vala')
-rw-r--r--src/web/web.vala4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web/web.vala b/src/web/web.vala
index 28c5d87..3dcb9aa 100644
--- a/src/web/web.vala
+++ b/src/web/web.vala
@@ -963,9 +963,13 @@ public class WebServer {
db.cashbox_add(type == "user" ? session.user : -3, amount, timestamp);
if(error) {
+ template.replace("TYPE", type);
+ template.replace("AMOUNT", amount.to_string());
template.replace("NEW.OK", "none");
template.replace("NEW.FAIL", "block");
} else {
+ template.replace("TYPE", "");
+ template.replace("AMOUNT", "");
template.replace("NEW.OK", "block");
template.replace("NEW.FAIL", "none");
}