when user contact us put project url at bottom of message

This commit is contained in:
Henry Oswald 2016-03-24 14:23:18 +00:00
parent e9478e0843
commit e2dffdf722
2 changed files with 5 additions and 3 deletions

View file

@ -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)->

View file

@ -53,7 +53,7 @@ define [
if !query? or query.length == 0
updateHits []
return
algolia.search query, (err, response)->
if response.hits.length == 0
updateHits []