diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-01-29 18:19:03 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-01-29 18:19:03 +0200 |
commit | 23d685c951cb52c5a895acda5fca3390eda49c80 (patch) | |
tree | 7fbdc46faa02634382d10723ae9d36c753167565 | |
parent | 27fec74655c9e6a3004d2b606724375f85b05697 (diff) | |
download | aconf-23d685c951cb52c5a895acda5fca3390eda49c80.tar.bz2 aconf-23d685c951cb52c5a895acda5fca3390eda49c80.tar.xz |
web client: allow reverting after entering invalid collection key
-rw-r--r-- | web/widget/inline.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/widget/inline.js b/web/widget/inline.js index 9fd89f8..4f66e54 100644 --- a/web/widget/inline.js +++ b/web/widget/inline.js @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012-2014 Kaarle Ritvanen + * Copyright (c) 2012-2015 Kaarle Ritvanen * See LICENSE file for license details */ @@ -40,7 +40,9 @@ define( if (set ? _.contains(data.data, name) : name in data.data) { - statusBar.setError("Already exists: " + name); + statusBar.setError( + "Already exists: " + name, "txn" + ); return; } @@ -61,7 +63,7 @@ define( button.show(); }).fail(function(xhr) { statusBar.setError( - self.formatValidationError(xhr) + self.formatValidationError(xhr), "txn" ); data.delete(name); }); |