From b1c4fc3e6d11203d0b7fa44d4a29b0bf892fe2c7 Mon Sep 17 00:00:00 2001 From: Adam Young Date: Wed, 26 Jan 2011 16:50:43 -0500 Subject: reset target section target section needed to cache results for use in results moved load logic into reset and load now calls reset --- install/ui/aci.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'install/ui') diff --git a/install/ui/aci.js b/install/ui/aci.js index 1cc1611ca..3bad384a2 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -494,6 +494,12 @@ IPA.target_section = function () { }; that.load = function(result) { + that.result = result; + that.reset(); + }; + + that.reset = function() { + var result = that.result; if(result.subtree){ $('#aci_query_text').val(result.subtree); $('#aci_by_query').click(); @@ -524,9 +530,6 @@ IPA.target_section = function () { } }; - that.reset = function() { - }; - that.save = function (record){ var record_type = $("input[name='type']:checked").attr('id'); -- cgit