summaryrefslogtreecommitdiffstats
path: root/install/static/associate.js
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2010-09-28 10:19:05 -0400
committerAdam Young <ayoung@redhat.com>2010-09-28 10:20:14 -0400
commitd966056bb0e24693fcd05be690f724e921492df3 (patch)
treee86d058f0dd3a43c0123faec6e017e1829fc2325 /install/static/associate.js
parent370c1c3e0e1fb357bbecc4b1e4a59e822e942548 (diff)
downloadfreeipa.git-d966056bb0e24693fcd05be690f724e921492df3.tar.gz
freeipa.git-d966056bb0e24693fcd05be690f724e921492df3.tar.xz
freeipa.git-d966056bb0e24693fcd05be690f724e921492df3.zip
Test suite for association.
New test cases have been added to test SerialAssociator and BulkAssociator using mockup objects. Also fixed a bug in BulkAssociator. Moved switch_view() out of ipa_entity_generate_views() in entity.js to allow unit testing using mockup objects. Updated the test case to validate click event on facets.
Diffstat (limited to 'install/static/associate.js')
-rw-r--r--install/static/associate.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/install/static/associate.js b/install/static/associate.js
index 73ce4d30..207c745c 100644
--- a/install/static/associate.js
+++ b/install/static/associate.js
@@ -65,6 +65,7 @@ in a single rpc
*/
function BulkAssociator(form, manyObjPkeys, on_success)
{
+ var associator = this;
this.form = form;
this.manyObjPkeys = manyObjPkeys;
this.on_success = on_success;
@@ -88,7 +89,7 @@ function BulkAssociator(form, manyObjPkeys, on_success)
if (response.error){
alert("error adding member: "+response.error.message);
}else{
- form.on_success();
+ associator.on_success();
}
},
function(response){