From 0050e2fcd957cd037e25c3ef68322a6204de7450 Mon Sep 17 00:00:00 2001 From: Endi DeWata Date: Wed, 8 Sep 2010 19:25:14 -0400 Subject: Services adds the Service tab: search, details, add, associations It also contains the sample data for some service operations --- install/static/add.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'install/static/add.js') diff --git a/install/static/add.js b/install/static/add.js index 4af6a8e72..97f7666a1 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 +} -- cgit