From 8a4a320f4b3bf3019719dc8814382a97c3b09a0d Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 1 Mar 2016 20:17:15 +0000 Subject: [PATCH 1/2] done -> close on modal for sharing --- services/web/app/views/project/editor/share.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/views/project/editor/share.jade b/services/web/app/views/project/editor/share.jade index 32bac2628e..dad1d42108 100644 --- a/services/web/app/views/project/editor/share.jade +++ b/services/web/app/views/project/editor/share.jade @@ -125,7 +125,7 @@ script(type='text/ng-template', id='shareProjectModalTemplate') span.text-danger.error(ng-show="state.error") #{translate("generic_something_went_wrong")} button.btn.btn-primary( ng-click="done()" - ) #{translate("done")} + ) #{translate("close")} script(type="text/ng-template", id="makePublicModalTemplate") .modal-header From 789abe504ddc5d7f571ad55b9536650b7995f65f Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 2 Mar 2016 12:23:51 +0000 Subject: [PATCH 2/2] added random ticket number to groove tickets --- services/web/public/coffee/main/universties-site.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/main/universties-site.coffee b/services/web/public/coffee/main/universties-site.coffee index 5826404f01..c62f4adc50 100644 --- a/services/web/public/coffee/main/universties-site.coffee +++ b/services/web/public/coffee/main/universties-site.coffee @@ -12,12 +12,13 @@ define [ console.log "email not set" return $scope.sending = true + ticketNumber = Math.floor((1 + Math.random()) * 0x10000).toString(32) params = name: $scope.form.name || $scope.form.email email: $scope.form.email labels: $scope.form.source message: "Please contact me with more details" - subject: $scope.form.subject + subject: $scope.form.subject + " - [#{ticketNumber}]" about : "#{$scope.form.position || ''} #{$scope.form.university || ''}" Groove.createTicket params, (err, json)->