From d966056bb0e24693fcd05be690f724e921492df3 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Tue, 28 Sep 2010 10:19:05 -0400 Subject: 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. --- install/static/associate.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/static/associate.js') 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){ -- cgit