summaryrefslogtreecommitdiffstats
path: root/install/ui/associate.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-06-01 09:34:44 -0400
committerEndi Sukma Dewata <edewata@people02.fedoraproject.org>2011-06-01 14:56:58 +0000
commit6039fdd6b3002f65ecd0121b7ca6d31e49b9590e (patch)
treeffce7da61ff0d0128e1efea526676489611d4144 /install/ui/associate.js
parent554bda2a853c9d48edbde6746c428c58368c7a93 (diff)
downloadfreeipa.git-6039fdd6b3002f65ecd0121b7ca6d31e49b9590e.tar.gz
freeipa.git-6039fdd6b3002f65ecd0121b7ca6d31e49b9590e.tar.xz
freeipa.git-6039fdd6b3002f65ecd0121b7ca6d31e49b9590e.zip
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.
Diffstat (limited to 'install/ui/associate.js')
-rw-r--r--install/ui/associate.js8
1 files changed, 1 insertions, 7 deletions
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('<p>Error: '+error_thrown.name+'</p>');
- summary.append('<p>'+error_thrown.message+'</p>');
- }
-
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();
};