Skip to content

Commit

Permalink
AngularJS 1.6対応
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Dec 9, 2016
1 parent 316c3d3 commit cc9e771
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webroot/js/tags.js
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 cc9e771

Please sign in to comment.