summaryrefslogtreecommitdiffstats
path: root/install/static/add.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/static/add.js')
-rw-r--r--install/static/add.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/static/add.js b/install/static/add.js
index 4af6a8e7..97f7666a 100644
--- a/install/static/add.js
+++ b/install/static/add.js
@@ -96,15 +96,23 @@ function EntityBuilder(obj,addProperties,addOptionsFunction ){
function addAnother(response){
+ if (response.error){
+ alert("error adding entry");
+ return;
+ }
var params = ipa_parse_qs();
builders[params["tab"]].setup();
}
function addEdit(response){
+ if (response.error){
+ alert("error adding entry");
+ return;
+ }
var params = ipa_parse_qs();
var hash= "tab="
+ params["tab"]
+"&facet=details&pkey="
+$("#pkey").val();
window.location.hash = hash;
-} \ No newline at end of file
+}