| xqd
@@ -475,17 +475,19 @@
|
|
|
$scope.dream.interactions[index].showmore = true;
|
|
|
}
|
|
|
}
|
|
|
- $scope.replay = function ($event, name, index) {
|
|
|
- $event.stopPropagation();
|
|
|
- $scope.input.focus = true;
|
|
|
- $scope.input.show = true;
|
|
|
- angular.forEach($scope.dream.interactions, function (item) {
|
|
|
- item.show = false;
|
|
|
- })
|
|
|
- $scope.dream.interactions[index].show = true;
|
|
|
- $scope.input.placeholder = "评论" + name+":";
|
|
|
- $scope.vm.title='';
|
|
|
- }
|
|
|
+ $scope.replay = function ($event, name, index) {
|
|
|
+ $event.stopPropagation();
|
|
|
+ $scope.input.focus = true;
|
|
|
+ $scope.input.show = true;
|
|
|
+ angular.forEach($scope.dream.interactions, function (item) {
|
|
|
+ item.show = false;
|
|
|
+ })
|
|
|
+ $scope.dream.interactions[index].show = true;
|
|
|
+ $scope.dream.interactions[index].focus = true;
|
|
|
+ $scope.input.placeholder = "评论" + name+":";
|
|
|
+ $scope.vm.title='';
|
|
|
+ $scope.vm.comment='';
|
|
|
+ }
|
|
|
$scope.replayOther = function ($event, name, index,currentindex) {
|
|
|
$event.stopPropagation();
|
|
|
if($scope.dream.interactions[index].comments[currentindex].user_id!=$scope.user.id){
|
| xqd
@@ -495,8 +497,10 @@
|
|
|
item.show = false;
|
|
|
})
|
|
|
$scope.dream.interactions[index].show = true;
|
|
|
+ $scope.dream.interactions[index].focus = true;
|
|
|
$scope.input.placeholder = "评论" + name+":";
|
|
|
$scope.vm.title='';
|
|
|
+ $scope.vm.comment='';
|
|
|
}
|
|
|
else {
|
|
|
msg.confirm("评论","是否删除评论").then(function(result){
|