Commit 8da01acd by Bence Dányi

firewall_gui: fix typeahead updater

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