mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
when user contact us put project url at bottom of message
This commit is contained in:
parent
e9478e0843
commit
e2dffdf722
2 changed files with 5 additions and 3 deletions
|
@ -20,11 +20,13 @@ define [
|
|||
return
|
||||
$scope.sending = true
|
||||
ticketNumber = Math.floor((1 + Math.random()) * 0x10000).toString(32)
|
||||
message = $scope.form.message
|
||||
if $scope.form.project_url
|
||||
message = "#{message}\n\n project_url = #{$scope.form.project_url}"
|
||||
params =
|
||||
email: $scope.form.email
|
||||
message: $scope.form.message or ""
|
||||
message: message or ""
|
||||
subject: $scope.form.subject + " - [#{ticketNumber}]"
|
||||
about : $scope.form.project_url or ""
|
||||
labels: "support"
|
||||
|
||||
Groove.createTicket params, (err, json)->
|
||||
|
|
|
@ -53,7 +53,7 @@ define [
|
|||
if !query? or query.length == 0
|
||||
updateHits []
|
||||
return
|
||||
|
||||
|
||||
algolia.search query, (err, response)->
|
||||
if response.hits.length == 0
|
||||
updateHits []
|
||||
|
|
Loading…
Reference in a new issue