mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Reflow review panel layout when adding a comment
This commit is contained in:
parent
5d414e9a1b
commit
beab95a871
1 changed files with 8 additions and 5 deletions
|
@ -45,23 +45,26 @@ define [
|
|||
|
||||
$scope.startNewComment = () ->
|
||||
$scope.commentState.adding = true
|
||||
$scope.$broadcast "comment:select_line"
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
$timeout () ->
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
|
||||
$scope.submitNewComment = () ->
|
||||
$scope.commentState.adding = false
|
||||
$scope.$broadcast "comment:add", $scope.commentState.content
|
||||
$scope.commentState.content = ""
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
$timeout () ->
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
|
||||
$scope.cancelNewComment = (entry) ->
|
||||
$scope.commentState.adding = false
|
||||
$scope.commentState.content = ""
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
$timeout () ->
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
|
||||
$scope.startReply = (entry) ->
|
||||
entry.replying = true
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
$timeout () ->
|
||||
$scope.$broadcast "review-panel:layout"
|
||||
|
||||
# $scope.handleCommentReplyKeyPress = (ev, entry) ->
|
||||
# if ev.keyCode == 13 and !ev.shiftKey and !ev.ctrlKey and !ev.metaKey
|
||||
|
|
Loading…
Reference in a new issue