mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Fix right click new and upload file options
This commit is contained in:
parent
f2da3155ff
commit
80d7c39044
1 changed files with 8 additions and 6 deletions
|
@ -28,10 +28,12 @@ define [
|
|||
|
||||
$scope.openNewDocModal = () ->
|
||||
$modal.open(
|
||||
templateUrl: "newDocModalTemplate"
|
||||
controller: "NewDocModalController"
|
||||
templateUrl: "newFileModalTemplate"
|
||||
controller: "NewFileModalController"
|
||||
size: 'lg'
|
||||
resolve: {
|
||||
parent_folder: () -> $scope.entity
|
||||
type: () -> 'doc'
|
||||
}
|
||||
)
|
||||
|
||||
|
@ -45,12 +47,12 @@ define [
|
|||
)
|
||||
|
||||
$scope.openUploadFileModal = () ->
|
||||
$scope.project_id = ide.project_id
|
||||
$modal.open(
|
||||
templateUrl: "uploadFileModalTemplate"
|
||||
controller: "UploadFileModalController"
|
||||
scope: $scope
|
||||
templateUrl: "newFileModalTemplate"
|
||||
controller: "NewFileModalController"
|
||||
size: 'lg'
|
||||
resolve: {
|
||||
parent_folder: () -> $scope.entity
|
||||
type: () -> 'upload'
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue