From 221351809b94f71572219177b36443a60c157cf7 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Tue, 7 Sep 2010 13:13:59 -0400 Subject: [PATCH] local param for this in closure --- install/static/associate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/static/associate.js b/install/static/associate.js index 748c40e63..c11642ba9 100644 --- a/install/static/associate.js +++ b/install/static/associate.js @@ -85,7 +85,7 @@ function BulkAssociator(form, pkey, manyObjPkeys){ options[form.manyObj] = option; var args = [this.pkey]; - + var associator = this; ipa_cmd( form.method,args, options , function(response){ var qs = ipa_parse_qs(); @@ -93,7 +93,7 @@ function BulkAssociator(form, pkey, manyObjPkeys){ alert("error adding memeber"); }else{ location.hash="tab=" +form.oneObj - +"&facet=details&pkey="+this.pkey; + +"&facet=details&pkey="+associator.pkey; } }, function(response){