Skip to content

Commit

Permalink
Merge pull request #28 from NetCommons3/s-nakajima-patch-1
Browse files Browse the repository at this point in the history
AngularJS 1.6対応
  • Loading branch information
s-nakajima committed Dec 9, 2016
2 parents 316c3d3 + cc9e771 commit 8aed750
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webroot/js/tags.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ NetCommonsApp.controller('Tags.TagEdit',
var url = $scope.searchUrl + $scope.blockId +
'/keyword:' + inputTag + '/target:' + $scope.modelName +
'/' + Math.random() + '.json';
$http.get(url).success(function(data, status, headers, config) {
$http.get(url).then(function(response) {
var data = response.data;
$scope.tagSearchResult[index] = data.results;
if ($scope.tagSearchResult[index].length > 0) {
$scope.showResult[index] = true;
} else {
$scope.showResult[index] = false;
}

}).error(function(data, status, headers, config) {
}, function(response) {
//var data = response.data;
// console.log(data);
});
}
Expand Down

0 comments on commit 8aed750

Please sign in to comment.