diff --git a/install/static/Makefile.am b/install/static/Makefile.am index 63e58943c..b0c4c7f7b 100644 --- a/install/static/Makefile.am +++ b/install/static/Makefile.am @@ -19,6 +19,7 @@ app_DATA = \ jquery.cookie.js \ navigation.js \ netgroup.js \ + service.js \ pageparams.js \ search.js \ details.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 +} diff --git a/install/static/index.xhtml b/install/static/index.xhtml index 4077d4f32..6e1d04352 100644 --- a/install/static/index.xhtml +++ b/install/static/index.xhtml @@ -20,6 +20,7 @@ +