diff --git a/src/js/client.js b/src/js/client.js index 52a1355e9..152ce66c2 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -1232,7 +1232,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N }); }; - Client.prototype.feedback = function (type, subject, description, appId /* optional */, callback) { + Client.prototype.createTicket = function (type, subject, description, appId /* optional */, callback) { var data = { type: type, subject: subject, @@ -1240,7 +1240,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N appId: appId || undefined }; - post('/api/v1/support/feedback', data, null, function (error, data, status) { + post('/api/v1/support/ticket', data, null, function (error, data, status) { if (error) return callback(error); if (status !== 201) return callback(new ClientError(status, data)); diff --git a/src/views/support.js b/src/views/support.js index 2a3c80222..63bf4ae4c 100644 --- a/src/views/support.js +++ b/src/views/support.js @@ -37,7 +37,7 @@ angular.module('Application').controller('SupportController', ['$scope', '$locat $scope.feedback.success = false; $scope.feedback.error = null; - Client.feedback($scope.feedback.type, $scope.feedback.subject, $scope.feedback.description, $scope.feedback.appId, function (error) { + Client.createTicket($scope.feedback.type, $scope.feedback.subject, $scope.feedback.description, $scope.feedback.appId, function (error) { if (error) { $scope.feedback.error = error.message; } else {