From 6039fdd6b3002f65ecd0121b7ca6d31e49b9590e Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 1 Jun 2011 09:34:44 -0400 Subject: redirect on error Code for redirecting on error has been moved to IPA.facet so it can be called from both details and assocaiton facets. --- install/ui/associate.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'install/ui/associate.js') diff --git a/install/ui/associate.js b/install/ui/associate.js index 73a19021..cb741652 100644 --- a/install/ui/associate.js +++ b/install/ui/associate.js @@ -1086,12 +1086,6 @@ IPA.association_facet = function (spec) { that.refresh_table(); } - function on_error(xhr, text_status, error_thrown) { - var summary = $('span[name=summary]', that.table.tfoot).empty(); - summary.append('

Error: '+error_thrown.name+'

'); - summary.append('

'+error_thrown.message+'

'); - } - var pkey = IPA.get_entity(that.entity_name).get_primary_key(); IPA.command({ @@ -1099,7 +1093,7 @@ IPA.association_facet = function (spec) { method: 'show', args: pkey, on_success: on_success, - on_error: on_error + on_error: that.on_error }).execute(); }; -- cgit