summaryrefslogtreecommitdiffstats
path: root/install/static/add.js
diff options
context:
space:
mode:
authorEndi DeWata <edewata@redhat.com>2010-09-08 19:25:14 -0400
committerAdam Young <ayoung@redhat.com>2010-09-08 19:25:14 -0400
commit0050e2fcd957cd037e25c3ef68322a6204de7450 (patch)
treeb4bbc622755585b007e4beb7c46a820df1556464 /install/static/add.js
parent54b3842abac529e550b9a3d94bf240a95d8a6ba5 (diff)
downloadfreeipa-0050e2fcd957cd037e25c3ef68322a6204de7450.tar.gz
freeipa-0050e2fcd957cd037e25c3ef68322a6204de7450.tar.xz
freeipa-0050e2fcd957cd037e25c3ef68322a6204de7450.zip
Services
adds the Service tab: search, details, add, associations It also contains the sample data for some service operations
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 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
+}