reset target section target section needed to cache results for use in results moved load logic into reset and load now calls reset

This commit is contained in:
Adam Young
2011-01-27 16:53:02 -05:00
parent 18ec29c42b
commit b1c4fc3e6d
+6 -3
View File
@@ -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');