summaryrefslogtreecommitdiff
path: root/war
diff options
context:
space:
mode:
Diffstat (limited to 'war')
-rw-r--r--war/logikorr.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/war/logikorr.js b/war/logikorr.js
index 8ed6706..2e6158f 100644
--- a/war/logikorr.js
+++ b/war/logikorr.js
@@ -14,6 +14,21 @@ YUI().use('node', 'node-base', 'io-base', 'io-form', 'io-queue', 'json', functio
});
}
+ function registerSendMailAction() {
+ var button = Y.one("#send-mail");
+ button.on("click", function(e) {
+ Y.io("send-mail",
+ { 'on': { 'complete': function(id, o, args) {
+ Y.log("E-Mail verschickt: " + o.responseText);
+ if (o.responseText == "\"OK\"") {
+ Y.one("#mail-sent-label").set("innerText", "E-Mail verschickt.");
+ } else {
+ Y.one("#mail-sent-label").set("innerText", "Fehler: " + o.responseText);
+ }
+ } } });
+ });
+ }
+
function markAsChanged(input) {
input.setAttribute("style", "background-color: #faa");
}