webui: allow to update action_state directly

prerequisite for: https://fedorahosted.org/freeipa/ticket/4286

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
This commit is contained in:
Petr Vobornik 2015-11-09 17:59:10 +01:00
parent 74b7c00365
commit b8059001a5

View File

@ -2808,9 +2808,16 @@ exp.state = IPA.state = function(spec) {
that.on_eval_changed = function() {
var evaluator = this;
that.put(evaluator.name, evaluator.state);
};
that.state.put(evaluator.name, evaluator.state);
/**
* Set state and notify
* @param {string} name
* @param {string} state
*/
that.put = function(name, state) {
that.state.put(name, state);
that.notify();
};