Commit e45c5c26 by Bence Dányi

firewall_gui: properly update model on typeahead/autocomplete

parent a0cbce65
......@@ -189,6 +189,13 @@ function EntityController(url, init) {
},
matcher: function() {
return true;
},
updater: function(item) {
var self = this;
$scope.$apply(function() {
$scope[self.$element[0].getAttribute('ng-model')] = item;
})
return item;
}
});
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment