File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 45
45
} ) ;
46
46
}
47
47
48
- $scope . reply = function ( ) {
48
+ $scope . reply = function ( parentId , postId ) {
49
49
var comment = {
50
- "ParentId" : $scope . vm . Detail . ParentId ,
51
- "PostId" : $scope . vm . Detail . PostId ,
50
+ "ParentId" : parentId ,
51
+ "PostId" : postId ,
52
52
"Content" : $scope . commentReply . text
53
53
}
54
54
dataService . addItem ( "/api/comments" , comment )
Original file line number Diff line number Diff line change 8
8
< h4 class ="modal-title "> {{vm.Detail.Title}}</ h4 >
9
9
</ div >
10
10
< div class ="modal-body ">
11
+ < div class ="form-horizontal ">
12
+ < div class ="form-group "> < span class ="col-md-3 "> {{lbl.author}}</ span > < div class ="col-md-9 "> < span > {{vm.SelectedItem.Author}}</ span > </ div > </ div >
13
+ < div class ="form-group "> < span class ="col-md-3 "> {{lbl.email}}</ span > < div class ="col-md-9 "> < span > {{vm.SelectedItem.Email}}</ span > </ div > </ div >
14
+ < div class ="form-group "> < span class ="col-md-3 "> {{lbl.date}}</ span > < div class ="col-md-9 "> < span > {{vm.SelectedItem.DateCreated}}</ span > </ div > </ div >
15
+ </ div >
11
16
< div class ="comment-view-reply ">
12
17
< pre class ="comment-view-box "> {{vm.Detail.Content}}</ pre >
13
18
< textarea ng-model ="commentReply.text " placeholder ="Reply... " class ="form-control ltr-dir " rows ="4 " id ="txtDraftText " name ="txtDraftText " focus-me ="focusInput "> </ textarea >
14
19
< div class ="modal-buttons ">
15
- < button type ="button " ng-click ="reply() " ng-disabled ="commentReply.text.length < 1 " class ="btn btn-hasicon btn-success "> < i class ="fa fa-check "> </ i > {{lbl.send}}</ button >
20
+ < button type ="button " ng-click ="reply(vm.Detail.Id, vm.Detail.PostId ) " ng-disabled ="commentReply.text.length < 1 " class ="btn btn-hasicon btn-success "> < i class ="fa fa-check "> </ i > {{lbl.send}}</ button >
16
21
< button type ="button " class ="btn btn-default " data-dismiss ="modal " ng-click ="focusInput=false "> {{lbl.cancel}}</ button >
17
22
</ div >
18
23
</ div >
You can’t perform that action at this time.
0 commit comments