summaryrefslogtreecommitdiffstats
path: root/web/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/client.js')
-rw-r--r--web/client.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/web/client.js b/web/client.js
index d289890..310c869 100644
--- a/web/client.js
+++ b/web/client.js
@@ -19,6 +19,7 @@ requirejs.config({
require(
[
+ "acf2/error",
"acf2/path",
"acf2/statusbar",
"acf2/transaction",
@@ -29,7 +30,7 @@ require(
"jquery-blockui",
"jquery-ui/sortable"
],
- function(pth, statusBar, txnMgr, type, $, _) {
+ function(formatError, pth, statusBar, txnMgr, type, $, _) {
$("#login").submit(function() {
$.ajax("/login", {
@@ -44,12 +45,6 @@ require(
xhr.getResponseHeader("X-ACF-Save-Required") == "1"
);
- function formatError(msg, xhr) {
- msg += " " + xhr.statusCode().status;
- if (xhr.responseText) msg += ': ' + xhr.responseText;
- return msg;
- }
-
function href() {
return $("<a>").attr({href: "javascript:void(0);"});