summaryrefslogtreecommitdiffstats
path: root/web/statusbar.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/statusbar.js')
-rw-r--r--web/statusbar.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/web/statusbar.js b/web/statusbar.js
deleted file mode 100644
index 535cf43..0000000
--- a/web/statusbar.js
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) 2012-2014 Kaarle Ritvanen
- * See LICENSE file for license details
- */
-
-define(["aconf/dom", "jquery"], function(dom, $) {
- function set(status, msg, mode) {
- dom.setStatus($("#status"), status);
- dom.setText($("#status p"), msg);
-
- dom.setVisible($("#logout"), !mode);
- dom.setVisible($("#status div"), mode == "txn");
-
- $("#commit").prop("disabled", status == "invalid");
- }
-
- function setError(msg, mode) { set("invalid", msg, mode); }
-
- return {
- reset: function() { set(null, ""); },
- setError: setError,
- validationReady: function(txnValid) {
- if (txnValid)
- set("changed", "You have uncommitted changes", "txn");
- else setError("Some values need checking", "txn");
- }
- };
-});