Commit 8da01acd by Bence Dányi

firewall_gui: fix typeahead updater

parent 0af622df
......@@ -350,12 +350,12 @@ function EntityController(url, init) {
console.log(this);
$scope.$apply(function() {
var model = self.$element[0].getAttribute('ng-model').split('.')[1];
console.log(model);
console.log(self.$element[0].getAttribute('ng-model'), model);
try {
$scope.entity[model].name = item;
} catch (ex) {
try {
$scope[model] = item;
$scope[self.$element[0].getAttribute('ng-model')] = item;
} catch(ex) {
}
......
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