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:
1 parent
18ec29c42b
commit
b1c4fc3e6d
1 file changed
+6
-3
+6
-3
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user