mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 19:20:59 +00:00
Remove missing wiki controller
This commit is contained in:
parent
8b533841d4
commit
0fd29d4819
1 changed files with 0 additions and 28 deletions
|
@ -55,32 +55,4 @@ define [
|
||||||
hits = _.map response.hits, buildHitViewModel
|
hits = _.map response.hits, buildHitViewModel
|
||||||
updateHits hits
|
updateHits hits
|
||||||
|
|
||||||
$scope.showMissingTemplateModal = () ->
|
|
||||||
modalInstance = $modal.open(
|
|
||||||
templateUrl: "missingWikiPageModal"
|
|
||||||
controller: "MissingWikiPageController"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
App.controller 'MissingWikiPageController', ($scope, $modalInstance) ->
|
|
||||||
$scope.form = {}
|
|
||||||
$scope.sent = false
|
|
||||||
$scope.sending = false
|
|
||||||
$scope.contactUs = ->
|
|
||||||
if !$scope.form.message?
|
|
||||||
console.log "message not set"
|
|
||||||
return
|
|
||||||
$scope.sending = true
|
|
||||||
ticketNumber = Math.floor((1 + Math.random()) * 0x10000).toString(32)
|
|
||||||
params =
|
|
||||||
email: $scope.form.email or "support@sharelatex.com"
|
|
||||||
message: $scope.form.message or ""
|
|
||||||
subject: "new wiki page sujection - [#{ticketNumber}]"
|
|
||||||
labels: "support wiki"
|
|
||||||
|
|
||||||
Groove.createTicket params, (err, json)->
|
|
||||||
$scope.sent = true
|
|
||||||
$scope.$apply()
|
|
||||||
|
|
||||||
$scope.close = () ->
|
|
||||||
$modalInstance.close()
|
|
||||||
|
|
Loading…
Reference in a new issue