From 23d685c951cb52c5a895acda5fca3390eda49c80 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Thu, 29 Jan 2015 18:19:03 +0200 Subject: web client: allow reverting after entering invalid collection key --- web/widget/inline.js | 8 +++++--- 1 file 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); }); -- cgit v1.2.3