X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifoldapi%2Fstatic%2Fjs%2Fmanifold.js;h=3aba9c159e2e22ff1efaa85751558045671d3b7f;hb=efea2e5e9a6bcac4b5d5807f7c8bff4e46848bfa;hp=2d94a3aa98ff02869c11a8ba768365e52a0165fa;hpb=2f06be434c87ce050612b2fa77d9835f9436aa07;p=unfold.git diff --git a/manifoldapi/static/js/manifold.js b/manifoldapi/static/js/manifold.js index 2d94a3aa..3aba9c15 100644 --- a/manifoldapi/static/js/manifold.js +++ b/manifoldapi/static/js/manifold.js @@ -1294,7 +1294,7 @@ var manifold = { new_state = ($.inArray(key, result_keys) == -1) ? STATE_SET_IN_FAILURE : STATE_SET_IN_SUCCESS; // Update record state for children queries - manifold.query_store.set_record_state(cur_query_uuid, field, STATE_SET, new_state); + manifold.query_store.set_record_state(cur_query_uuid, key, STATE_SET, new_state); data = { state: STATE_SET, key : field, op : new_state, value: key } manifold.raise_record_event(query_uuid, FIELD_STATE_CHANGED, data); @@ -1303,7 +1303,7 @@ var manifold = { new_state = ($.inArray(key, result_keys) == -1) ? STATE_SET_OUT_SUCCESS : STATE_SET_OUT_FAILURE; // Update record state for children queries - manifold.query_store.set_record_state(cur_query_uuid, field, STATE_SET, new_state); + manifold.query_store.set_record_state(cur_query_uuid, key, STATE_SET, new_state); data = { state: STATE_SET, key : field, op : new_state, value: key } manifold.raise_record_event(query_uuid, FIELD_STATE_CHANGED, data);